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
pnpm create vite
cd vite-project
pnpm intsall
pnpm rundev
Reproduction
[plugin vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/.pnpm/react@17.0.2/node_modules/react/index.js" when it was imported here:
System Info
The original metadata for that path comes from when it was imported here:
dep:react:1:23:
1 │ export default require("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The difference in metadata is displayed below:
{
- "pluginName": null,
+ "pluginName": "vite:dep-pre-bundle",
}
This is a bug in the "vite:dep-pre-bundle" plugin. Plugins provide metadata fora given pathin 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.
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
使用vite初始化react时报错
pnpm create vite
cd vite-project
pnpm intsall
pnpm rundev
Reproduction
[plugin vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/.pnpm/react@17.0.2/node_modules/react/index.js" when it was imported here:
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: