-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
esbuild0.14.35 is not compate with vite #7683
Comments
same problem |
You are not using latest version (2.9.1) of vite. You are using 2.8.6. |
yes. when i update package and i find error.i dont push it |
Please write how to reproduce the error. It is unclear how to reproduce. |
Lock esbuild to version 0.14.34. It's likely esbuild had a breakchange. |
same error,when i use |
Looks like this one is affecting.
|
In that way, the author should publish a minor version instead of a patch. |
Critical dependencies of Vite such as ESBuild and Rollup should probably be version-locked to prevent this from happening in the future. |
PR welcome to lock it in 2.9 (while we look at the compat issue) |
I don't think we should version lock esbuild. They (seem to have) made a breaking change in a patch release and broke semver. It should be fine if they made a minor bump instead, otherwise projects don't get patch improvements / security fixes automatically. |
I've temporarily fixed my issue by uninstalling vite and reinstalling v2.7.13 (latest version before vite@2.8.0, which also coincides with the upgrade of esbuild@0.13.12 to esbuild@0.14.14). Not the most ideal solution, but I was also able to get vite working properly in a test project with the |
|
The issue is that |
Downgrade vite from 2.9.1 to 2.7.1 fix this temporary. |
esbuild dev is aware esbuild/#2177 and reverted the change. Likely will publish 0.14.36 soon. |
having same issue now |
Closing as esbuild 0.14.36 is out reverting the change. Great work @sapphi-red 🙌 |
Im still getting an error. Here is my log
The original metadata for that path comes from when it was imported here:
The difference in metadata is displayed below: {
This is a bug in the "vite:dep-pre-bundle" plugin. Plugins provide metadata for a given path in an ✘ [ERROR] [plugin vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/ag-grid-community/dist/ag-grid-community.cjs.js" when it was imported here:
The original metadata for that path comes from when it was imported here:
The difference in metadata is displayed below: {
This is a bug in the "vite:dep-pre-bundle" plugin. Plugins provide metadata for a given path in an ✘ [ERROR] [plugin vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/ag-grid-community/dist/ag-grid-community.cjs.js" when it was imported here:
The original metadata for that path comes from when it was imported here:
The difference in metadata is displayed below: {
This is a bug in the "vite:dep-pre-bundle" plugin. Plugins provide metadata for a given path in an ✘ [ERROR] [plugin vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/ag-grid-community/dist/ag-grid-community.cjs.js" when it was imported here:
The original metadata for that path comes from when it was imported here:
The difference in metadata is displayed below: {
This is a bug in the "vite:dep-pre-bundle" plugin. Plugins provide metadata for a given path in an ✘ [ERROR] [plugin vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/ag-grid-community/dist/ag-grid-community.cjs.js" when it was imported here:
The original metadata for that path comes from when it was imported here:
The difference in metadata is displayed below: {
This is a bug in the "vite:dep-pre-bundle" plugin. Plugins provide metadata for a given path in an ✘ [ERROR] [plugin vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/ag-grid-community/dist/ag-grid-community.cjs.js" when it was imported here:
The original metadata for that path comes from when it was imported here:
The difference in metadata is displayed below: {
This is a bug in the "vite:dep-pre-bundle" plugin. Plugins provide metadata for a given path in an ✘ [ERROR] Detected inconsistent metadata for the path "node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" when it was imported here:
The original metadata for that path comes from when it was imported here:
The difference in metadata is displayed below: {
This is a bug in the "vite:dep-pre-bundle" plugin. Plugins provide metadata for a given path in an ✘ [ERROR] Detected inconsistent metadata for the path "node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" when it was imported here:
The original metadata for that path comes from when it was imported here:
The difference in metadata is displayed below: {
This is a bug in the "vite:dep-pre-bundle" plugin. Plugins provide metadata for a given path in an |
If you're using yarn, think to do "yarn clean cache" to get new version. |
@aclec im using npm. What do i do? |
@ishaiavrahami "npm cache clean --force" |
@aclec i cleared the cache then deleted |
you'll need to update/regenerate your lock file. e.g |
@aclec @aladdin-add thanks i got it to work by removing |
I have the same problem |
@1291927234 follow this |
I will have a try,thanks @ishaiavrahami |
Describe the bug
vite: latest
esbuild: 0.14.35
Reproduction
https://github.com/agileago/fe-template
System Info
Used Package Manager
pnpm
Logs
Validations
The text was updated successfully, but these errors were encountered: