Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not provide an export named 'default' #278

Closed
capoia opened this issue Dec 23, 2022 · 1 comment
Closed

does not provide an export named 'default' #278

capoia opened this issue Dec 23, 2022 · 1 comment

Comments

@capoia
Copy link

capoia commented Dec 23, 2022

I'm trying to use the cli to build a plugin for my own use, copying the dist folder and trying to import it returns the error:

Uncaught SyntaxError: The requested module '/src/plugins/cubosuite-form/dist/index.js?t=1671817004952' does not provide an export named 'default'.

I'm trying to use it with vite, how would I make it use the default export?

@artf
Copy link
Member

artf commented Jan 25, 2023

Hi @capoia by default, the webpack config outputs files in umd format, in case you have to, you can customize the webpack config (eg. by using the module as output)

@artf artf closed this as completed Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants