This repository was archived by the owner on Aug 16, 2022. It is now read-only.
This repository was archived by the owner on Aug 16, 2022. It is now read-only.
Move HEAD assignment for SSR compatibility (assembler) #85
Open
Description
When you import an SFC on Nuxt, it throws the following error even if the Component is SSR ready:
Reason: ReferenceError: document is not defined
This error is fixed by moving this
vue-component-compiler/src/assembler.ts
Line 91 in c4bcd40
inside the addStyle
function
vue-component-compiler/src/assembler.ts
Line 97 in c4bcd40
I cannot see any drawback of doing that, but you know better than me so, could that be done?
Metadata
Metadata
Assignees
Labels
No labels