We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a vue component library (my-component) and another nuxt project (my-project), my-project uses my_component through npm,
my-component is packaged in the form of webpack target=web and published to npm
my-project needs to be compatible with both ssr and spa (non-ssr)
nuxt mode: universal packaging
universal
npm run build & npm run start will report an error document is undefined
npm run build & npm run start
document is undefined
My idea is whether to add a judgment before this
if (!hasDocument) { return noop }
vue-style-loader/lib/addStylesClient.js
Lines 119 to 120 in 477c25e
pull request: #45
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Background:
I have a vue component library (my-component) and another nuxt project (my-project), my-project uses my_component through npm,
my-component is packaged in the form of webpack target=web and published to npm
Question:
my-project needs to be compatible with both ssr and spa (non-ssr)
nuxt mode:
universal
packagingnpm run build & npm run start
will report an errordocument is undefined
Solve:
My idea is whether to add a judgment before this
vue-style-loader/lib/addStylesClient.js
Lines 119 to 120 in 477c25e
pull request: #45
The text was updated successfully, but these errors were encountered: