-
-
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 ssr]normalizeFile get undefined file #9488
Comments
when i set sourceMap to true ,render success
looks like that no matter where you set in sourceMap,when you create manifest.json, it alway mapping xxx.css.map |
i got same error when enable sourceMap . enable js sourceMap , disable css sourceMapserver render error enable js and css sourceMapserver render success disable js and css sourceMapserver render success |
Hi @ediaos, I tried in my
and
but none of them works 😢 do am I doing something wrong? Thank you, EDIT: Oups! Sorry! I was just retrying the |
@sneko
AND I WRIETE A PROJECT FOR SSR TEMPLATE vue-cli3-ssr-project |
I found that the inline style of the SSR injection is duplicated with the extracted css style. So use css-loader/locals instead of css-loader, css-loader/locals will not inject the css file at server.
|
This comment has been minimized.
This comment has been minimized.
Hi, No longer sure but I just saw my source code generated by the SSR is always containing all the style into a Any idea if it comes from the workarounds mentioned before? Thanks, |
This comment has been minimized.
This comment has been minimized.
Check if *.vue file is use |
@lovetingyuan I upgraded to But I still have all CSS in the source code, do you know why this plugin does not embed it by default? Even with Do you have an example of your Thank you, EDIT: @GreenMashimaro I have no EDIT2: @lovetingyuan it seems related to some new activity on Akryum/vue-cli-plugin-ssr#186 and Akryum/vue-cli-plugin-ssr#191 |
@sneko I create a complete example for vue ssr at https://github.com/lovetingyuan/vue-ssr-example. You could check it out. |
Version
2.6.6
Reproduction link
https://codepen.io/lkafai/pen/Erpgze
Steps to reproduce
package.json:
"vue": "^2.5.22",
"vue-server-renderer": "^2.6.6"
run command
vue-cli-service build
What is expected?
success render
What is actually happening?
TypeError: Cannot read property 'replace' of undefined
at normalizeFile (/node_modules/_vue-server-renderer@2.6.6@vue-server-renderer/build.dev.js:8998:27)
i open the file vue-ssr-client-manifest.json , and found that some id in modules got -1 index
and the -1 index not found any file.
so in vue-server-renderer/build.dev.js file,the normalizeFile get undefined , and throw out "Cannot read property 'replace' of undefined"
i have no idea why there is -1 in modules , and file mapping fail, is this a configure problem?
my vue.config.js is writed in codepen , sorry for my poor english
The text was updated successfully, but these errors were encountered: