-
-
Notifications
You must be signed in to change notification settings - Fork 445
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
require() of ES Module #372
Comments
You probably need to enable ESM in your Vue/Nuxt server. This package uses correct ESM config, so the problem is with your build tool or config. |
You can also downgrade to v7.x.x which is not an ESM build yet |
@bertyhell thanks! all these ESM packages are ruining ts + node projects |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
require() of ES Module C:\path\node_modules\query-string\index.js from C:\path\client\node_modules\vue-server-renderer\build.dev.js not supported. Instead change the require of index.js in C:\path\client\node_modules\vue-server-renderer\build.dev.js to a dynamic import() which is available in all CommonJS modules.
this is my own package.json file
This is my code
i have tried adding "type": "module" to my own package.json file, and even downgraded to other version ended up with even more errors.
The text was updated successfully, but these errors were encountered: