-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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" in the package.json or use the .mjs extension. #4462
Comments
Please provide a minimal reproducible example using https://vitepress.new |
node_modules\dayjs\esm\index.js:1 What is the source of this error? The system, which normally works while building, is clearly not working yesterday. |
I can’t tell without looking at your code first. You or maybe one of your deps might be using dayjs. You might’ve updated something which started breaking. |
[17:54:47.690] Running build in Washington, D.C., USA (East) – iad1 |
Like I said, we can't help without looking at actual code. Logs don't help. Please share a minimal reproducible example. dayjs doesn't work properly with node's ESM resolution logic (iamkun/dayjs#1765). You might need to set |
Thank you bro. |
Was this fixed? |
Is your feature request related to a problem? Please describe.
As you can see in the image, it gives such an error. and this error started yesterday. Even though I didn't change any code
Describe the solution you'd like
Describe alternatives you've considered
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: