Replies: 2 comments
|
This issue happens because of how Vite / Nuxt and pnpm handle dual CommonJS / ESM packages in symlinked dependency trees. Root Cause
Cleanest Fixes1. Deduplicate via pnpm overrides (Recommended)Force pnpm to hoist and unify // package.json
{
"pnpm": {
"overrides": {
"@vue/devtools-api": "^7.0.0"
}
}
}(Run 2. Nuxt / Vite configuration workaroundIf you cannot use overrides, tell Vite to pre-bundle or transpile the dependency so its named exports are properly exposed: // nuxt.config.ts
export default defineNuxtConfig({
vite: {
optimizeDeps: {
include: ["@vue/devtools-api"],
},
},
build: {
transpile: ["@vue/devtools-api", "@tanstack/vue-query"],
},
});Upstream FixLong term, |
I wonder why is there any reason to add an AI reply with little to no benifit regarding the size of the comment. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I feel this should be an issue, but this is not reproducible somehow??
this happens when using pnpm, and there are two workarounds:
pnpm install --shamefully-hoist-D)A similar issue that happened before with the same
@vue/devtools-api@6.6.x, but on vee-validate (logaretm/vee-validate#4863)the fix was to simple update @vue/devtools-api to a newer version..?
output of
pnpm --filter why @vue/devtools-apiAll reactions