Closed codanator closed 3 years ago
Hey,
iam building with vite 2.0.5 and getting this error:
3339: } 3340: function useTitle(overrideTitle = null) { 3341: if ((('process' in globalThis ? globalThis.process.env.SSR : 'import' in globalThis ? globalThis.import.meta.env.SSR : false) == true) && !isClient) { ^ 3342: return useSSRTitle(overrideTitle); 3343: } error during build: SyntaxError: Unexpected token (3341:47)
when i comment out the lines 3340 - 3343 the build succeeds.
Hey,
iam building with vite 2.0.5 and getting this error:
3339: } 3340: function useTitle(overrideTitle = null) { 3341: if ((('process' in globalThis ? globalThis.process.env.SSR : 'import' in globalThis ? globalThis.import.meta.env.SSR : false) == true) && !isClient) { ^ 3342: return useSSRTitle(overrideTitle); 3343: } error during build: SyntaxError: Unexpected token (3341:47)
when i comment out the lines 3340 - 3343 the build succeeds.