You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SyntaxError: Named export 'Moltin' not found. The requested module '@moltin/sdk' is a CommonJS module, which may not support all module.exports as named exports.
Maybe it would enough to provide an exports mapping in the package.json.
I’m trying to import the moltin sdk via import statement in a ESM node project like this:
When running the code I get the following error:
Maybe it would enough to provide an
exportsmapping in thepackage.json.