Vite 6 and lifecycle_outside_component #1064
Replies: 4 comments 2 replies
-
I suspect bits will need to upgrade to https://github.com/melt-ui/next-gen for Svelte 5 support. |
Beta Was this translation helpful? Give feedback.
-
So it's not specifically the navigation menu. Also happens with for example tooltip provider (anything using useXxxx in bits-ui?) Only happens with Vite 6 and only intermittently when trying with a new project or on svelte Labs. Any ideas or suggestions on how to debug or dig deeper welcome. |
Beta Was this translation helpful? Give feedback.
-
See svecosystem/runed#217 this seems very much related @shyakadavis |
Beta Was this translation helpful? Give feedback.
-
I found my culprit which is the following lines in vite.config.js: resolve: {
// The default would be [ 'svelte', 'node' ]
// as set by vite-plugin-svelte and vitest.
// This sets [ 'browser', 'svelte', 'node' ]
conditions: mode === 'test' ? ['browser'] : [],
}, used to make tests work. Reproductionhttps://www.sveltelab.dev/3aiwrh7bswdkxp6 SolutionFollowing the instructions on how to set up the Svelte testing library below, there is no apparent need to include Related links |
Beta Was this translation helpful? Give feedback.
-
With Vite 6.0.11 the navigation menu gives a
lifecycle_outside_component
error (works fine with Vite 5):Beta Was this translation helpful? Give feedback.
All reactions