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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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