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

Warning: To load an ES module, set "type": "module" #18

Open
fank84518 opened this issue Jan 31, 2024 · 1 comment
Open

Warning: To load an ES module, set "type": "module" #18

fank84518 opened this issue Jan 31, 2024 · 1 comment

Comments

@fank84518
Copy link

In SSR mode, you have to add "type": module to package.json

Otherwise, the following error will be reported

Warning: To load ES modules, please set "type": "module" in package.json or use .mjs extension.

@kinger251285
Copy link

@fank84518 did you fix this? Im getting the same issue. Tried adding "type": "module", to the package.json but caused further issues.

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