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

Cannot use import statement outside a module #19

Open
jing16hou opened this issue Nov 26, 2020 · 1 comment
Open

Cannot use import statement outside a module #19

jing16hou opened this issue Nov 26, 2020 · 1 comment

Comments

@jing16hou
Copy link

No description provided.

@ShadXst
Copy link

ShadXst commented Jul 25, 2022

For everyone who's still fighting with this problem: put the package name in nuxt.js build > transpile configuration in nuxt.config.js:

build: {
    transpile: [
      '@caohenghu/vue-colorpicker',
    ],
},

Learn more:
https://nuxtjs.org/docs/configuration-glossary/configuration-build/#transpile
https://nuxtjs.org/docs/configuration-glossary/configuration-modern/

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