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
After upgrading to version 10 of @vueue/components, builds of our vue3 vite app fail because Rollup cannot find the @vue/reactivity import in @vueuse/components/index.mjs
This bug appears to have been introduced via f87f877 which adds the import on @vue/reactivity without declaring it as a peer dependency.
Error log
[vite]: Rollup failed to resolve import "@vue/reactivity" from "[system path]/node_modules/@vueuse/components/index.mjs".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
error during build:
Error: [vite]: Rollup failed to resolve import "@vue/reactivity" from "[system path]/node_modules/@vueuse/components/index.mjs".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at onRollupWarning (file:///[system path]/node_modules/vite/dist/node/chunks/dep-79892de8.js:46368:19)
at onwarn (file:///[system path]/node_modules/vite/dist/node/chunks/dep-79892de8.js:46138:13)
at Object.onwarn (file:///[system path]/node_modules/rollup/dist/es/shared/node-entry.js:25149:13)
at ModuleLoader.handleInvalidResolvedId (file:///[system path]/node_modules/rollup/dist/es/shared/node-entry.js:23784:26)
at file:///[system path]node_modules/rollup/dist/es/shared/node-entry.js:23744:26
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse 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.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Describe the bug
After upgrading to version 10 of
@vueue/components
, builds of our vue3 vite app fail because Rollup cannot find the@vue/reactivity
import in@vueuse/components/index.mjs
This bug appears to have been introduced via f87f877 which adds the import on
@vue/reactivity
without declaring it as a peer dependency.Error log
Reproduction
https://github.com/wopian/vueuse-repro2
Reproduction Steps
yarn
to install dependencies with Yarn 3.5.0yarn build
to build the Vite 4 appSystem Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: