File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @clerk/nuxt " : patch
3+ ---
4+
5+ Fix Vite optimization issue that caused duplicate versions of @clerk/vue to be created on first load, resulting in the Vue plugin losing context.
Original file line number Diff line number Diff line change @@ -79,6 +79,11 @@ export default defineNuxtModule<ModuleOptions>({
7979 // Handle Nuxt-specific imports (e.g #imports)
8080 nuxt . options . build . transpile . push ( resolver . resolve ( './runtime' ) ) ;
8181
82+ // Optimize @clerk /vue to avoid missing injection Symbol key errors
83+ nuxt . options . vite . optimizeDeps = nuxt . options . vite . optimizeDeps || { } ;
84+ nuxt . options . vite . optimizeDeps . include = nuxt . options . vite . optimizeDeps . include || [ ] ;
85+ nuxt . options . vite . optimizeDeps . include . push ( '@clerk/vue' ) ;
86+
8287 // Add the `@clerk/vue` plugin
8388 addPlugin ( resolver . resolve ( './runtime/plugin' ) ) ;
8489
You can’t perform that action at this time.
0 commit comments