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

Use import instead of require #37

Open
sourov-am opened this issue Feb 9, 2024 · 1 comment
Open

Use import instead of require #37

sourov-am opened this issue Feb 9, 2024 · 1 comment

Comments

@sourov-am
Copy link

sourov-am commented Feb 9, 2024

Show error when I run vite build

Error during build:
Error [ERR_REQUIRE_ESM]: require() of ES Module node_modules/import-meta-resolve/index.js from node_modules/vite-plugin-chunk-split/dist/index.cjs not supported.
Instead change the require of index.js in node_modules/vite-plugin-chunk-split/dist/index.cjs to a dynamic import() which is available in all CommonJS modules.
@ZSC92
Copy link

ZSC92 commented Mar 20, 2024

use v0.4.7

Chu-wee pushed a commit to Chu-wee/vite-plugin-chunk-split that referenced this issue Jul 16, 2024
… .. ES Module from ... not supported." 的错误
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