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
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.
Same for react, since 3.0.6 we got a problem in production build which says "useQuery" is not defined. This is a library we use from "@tanstack/react-query" package.
Describe the bug
I import vue and a 3rd package portal-vue. It works fine in dev, but raises the following error if I preview the bundle built:
This bug looks very similar to an issue vitejs/vite-plugin-vue#34 I reported previously but occurs only since v3.0.6.
✔️Vite v3.0.5 dev
✔️Vite v3.0.5 production
✔️Vite v3.0.6 v3.0.7 dev
❌Vite v3.0.6 v3.0.7 production
Reproduction
https://stackblitz.com/edit/vitejs-vite-e9wniz
System Info
System: OS: Linux 5.0 undefined CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 16.14.2 - /usr/local/bin/node Yarn: 1.22.10 - /bin/yarn npm: 7.17.0 - /bin/npm npmPackages: vite: ^3.0.7 => 3.0.7
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: