-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
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
[vue-server-renderer] Bug failing when using a reference of process - related to SSRClientWebpackPlugin #9194
Comments
+1 I'm experiencing the same issue Downgrading to
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I had this error too when building my client webpack config. It turns out that I forgot to delete I am not sure if it's related but someone else might have the same issue. |
For me, the error was caused by a malformed To fix it, I just enabled the source maps for css files. In css: {
sourceMap: true,
}, Tested with version 2.6.9. I hope this will help. |
@laure-at-irun yep! that was my issue as well |
@laure-at-irun This fixed the issue for me too. But why!? |
The vue client plugin receives from webpack compilation stats a list of files that includes css maps, even when css maps are not emitted. The list is provided by webpack though stats.chunks.files. The stats.assets doesn't contain the css map files. However, I am not sure why webpack is doing this. Anyway, the client plugin is not robust to webpack inconsistent data. |
Maybe souceMap in chunks is set by option: |
Version
2.5.21
Reproduction link
https://github.com/AlexandreBonaventure/repro-vue-ssr-bug
Steps to reproduce
yarn install
yarn run ssr:build && yarn ssr:start
What is expected?
to serve / correctly
What is actually happening?
error 500:
Hi, I came across this weird bug when I was trying to retrieve a global variable (eg. global.localenv.PUBLIC_URL) in App.vue to populate a meta tag (using vue-meta).
I stumble upon the bug, and narrowed it down to referencing
process
being the cause here.Another weird thing is that if you remove the component Icons import in the minimal repro, it works fine!
The error stack is initiated by
TemplateRenderer.renderPreloadLinks
which makes me think that maybe it is a bug in the webpack SSRClientPlugin which inject preload links for every assets.The text was updated successfully, but these errors were encountered: