You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a bug in the "vite:dep-pre-bundle" plugin. Plugins provide metadata for a given path in an
"onResolve" callback. All metadata provided for the same path must be consistent to ensure
deterministic builds. Due to parallelism, one set of provided metadata will be randomly chosen for
a given path, so providing inconsistent metadata for the same path can cause non-determinism.
✘ [ERROR] [plugin vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/react/index.js" when it was imported here:
node_modules/react-dom/cjs/react-dom.development.js:16:20:
16 │ var React = require('react');
╵ ~~~~~~~
The original metadata for that path comes from when it was imported here:
This is a bug in the "vite:dep-pre-bundle" plugin. Plugins provide metadata for a given path in an
"onResolve" callback. All metadata provided for the same path must be consistent to ensure
deterministic builds. Due to parallelism, one set of provided metadata will be randomly chosen for
a given path, so providing inconsistent metadata for the same path can cause non-determinism.
11:16:59 PM [vite] error while updating dependencies:
Error: Build failed with 2 errors:
node_modules/react-dom/cjs/react-dom.development.js:16:20: ERROR: [plugin: vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/react/index.js" when it was imported here:
node_modules/react/cjs/react-jsx-dev-runtime.development.js:16:20: ERROR: [plugin: vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/react/index.js" when it was imported here:
at failureErrorWithLog (/Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:1603:15)
at /Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:1249:28
at runOnEndCallbacks (/Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:1034:63)
at buildResponseToResult (/Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:1247:7)
at /Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:1356:14
at /Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:666:9
at handleIncomingPacket (/Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:763:9)
at Socket.readFromStdout (/Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:632:7)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:312:12)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Describe the bug
✘ [ERROR] [plugin vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/react/index.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
"onResolve" callback. All metadata provided for the same path must be consistent to ensure
deterministic builds. Due to parallelism, one set of provided metadata will be randomly chosen for
a given path, so providing inconsistent metadata for the same path can cause non-determinism.
✘ [ERROR] [plugin vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/react/index.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
"onResolve" callback. All metadata provided for the same path must be consistent to ensure
deterministic builds. Due to parallelism, one set of provided metadata will be randomly chosen for
a given path, so providing inconsistent metadata for the same path can cause non-determinism.
11:16:59 PM [vite] error while updating dependencies:
Error: Build failed with 2 errors:
node_modules/react-dom/cjs/react-dom.development.js:16:20: ERROR: [plugin: vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/react/index.js" when it was imported here:
node_modules/react/cjs/react-jsx-dev-runtime.development.js:16:20: ERROR: [plugin: vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/react/index.js" when it was imported here:
at failureErrorWithLog (/Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:1603:15)
at /Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:1249:28
at runOnEndCallbacks (/Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:1034:63)
at buildResponseToResult (/Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:1247:7)
at /Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:1356:14
at /Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:666:9
at handleIncomingPacket (/Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:763:9)
at Socket.readFromStdout (/Users/hotdawng/Desktop/viteTest/pleaseWork/node_modules/esbuild/lib/main.js:632:7)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:312:12)
Reproduction
https://stackblitz.com/edit/vitejs-vite-f3xqhq?file=index.html&terminal=dev
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: