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
Background: In Nuxt, we need to use the CJS versions of some Vue dependencies as these will not suffer from memory leaks when running on the server. (The ESM versions should not be run on the server.) So we alias them in advance in resolve.alias.
The bug: When using the new optimizeDeps treatment in Vite, dependencies aliased to absolute paths are not processed, leading to an error like:
Error: 'isFunction' is not exported by node_modules/@vue/shared/dist/shared.cjs.prod.js, imported by src/main.js
(Possible workaround seems to be not fully resolving them.)
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 vuejs/core instead.
Describe the bug
Background: In Nuxt, we need to use the CJS versions of some Vue dependencies as these will not suffer from memory leaks when running on the server. (The ESM versions should not be run on the server.) So we alias them in advance in
resolve.alias
.The bug: When using the new optimizeDeps treatment in Vite, dependencies aliased to absolute paths are not processed, leading to an error like:
(Possible workaround seems to be not fully resolving them.)
Reproduction
https://stackblitz.com/edit/vitejs-vite-r2pbvz
System Info
Stackblitz with:
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: