File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,8 @@ async function routerApp(
258
258
appDir : string ,
259
259
) {
260
260
const ssrPath = join ( appDir , "server" , `${ qwikRouterVirtualEntry } .js` ) ;
261
-
261
+ // it's ok in the devserver to import core multiple times
262
+ ( globalThis as any ) . __qwik = null ;
262
263
const mod = await import ( file ( ssrPath ) ) ;
263
264
const router : any = mod . router ;
264
265
router ( req , res , ( ) => {
@@ -276,6 +277,8 @@ async function ssrApp(
276
277
manifest : QwikManifest ,
277
278
) {
278
279
const ssrPath = join ( appDir , "server" , "entry.ssr.js" ) ;
280
+ // it's ok in the devserver to import core multiple times
281
+ ( globalThis as any ) . __qwik = null ;
279
282
const mod = await import ( file ( ssrPath ) ) ;
280
283
const render : Render = mod . default ?? mod . render ;
281
284
You can’t perform that action at this time.
0 commit comments