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 #15

Open
Lianecx opened this issue Feb 22, 2023 · 1 comment
Open

Cannot use import statement outside a module #15

Lianecx opened this issue Feb 22, 2023 · 1 comment

Comments

@Lianecx
Copy link

Lianecx commented Feb 22, 2023

The vue package seems to be using esm imports/exports without having "type": "module" specified in their package.json

Note: I am receiving this error when compiling my vuepress v2 project with vite (not when running the dev server though 🤔)
Editing the package.json inside the node_modules to include the above field, resolves the error.

@OFFchase
Copy link

Any solutions?

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