-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
mport { A } from '@mobily/ts-belt';
^
SyntaxError: Named export 'A' not found. The requested module '@mobily/ts-belt' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@mobily/ts-belt';
const { A } = pkg;
Trying to build a project using ts-belt with pkgroll and it's giving me the above error, no matter what tsconfig settings I supply for target/module.
Only seems to affect ts-belt, I'm not sure exactly what the problem is, but perhaps you know?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels