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
I get this error after Importing AtButton into an ESM project ("type": "module")
import { AtButton } from "vite-component-library-template";
^^^^^^^^
SyntaxError: Named export 'AtButton' not found. The requested module 'vite-component-library-template' 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 'vite-component-library-template';
const { AtButton } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at ModuleJob.run (node:internal/modules/esm/module_job:190:5)
The text was updated successfully, but these errors were encountered:
Thank you for this awesome repo!!
I get this error after Importing
AtButton
into an ESM project ("type": "module"
)The text was updated successfully, but these errors were encountered: