-
Notifications
You must be signed in to change notification settings - Fork 50
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
Child compilation failed #25
Comments
+1
I just added |
I have a similar in my build environment, but not on my laptop. When ran in a node:10 container it fails, but not on my Mac. |
This comment has been minimized.
This comment has been minimized.
Scratch it, my issue was vuejs/vue-cli#3407 (comment) Which was a underlying dependency, sorry about that. |
When using multiple webpack entries, you must tell prerender-loader which to include: entry: [
"webpack-hot-middleware/client?reload=true&path=/__webpack_hmr",
"@babel/polyfill",
"./src/index.js", // <-- there is no way to know that this is the correct entry
"./dll/vendor.dll.js"
],
new HtmlWebpackPlugin({
filename: "index.html",
favicon: "./public/favicon.png",
- template: `!!prerender-loader?string!${path.resolve(__dirname, "public", "index.ejs")}`,
+ template: `!!prerender-loader?string&entry=./src/index.js!${path.resolve(__dirname, "public", "index.ejs")}`,
// so we specifically pass it here ^^^^^^^^^^^^^^^^^^^^^
inject: true,
templateParameters: {
dll: "<script src='/vendor.dll.js'></script>",
manifest: ""
}
}), |
With multiple entry points I get this error: |
Error Info
The text was updated successfully, but these errors were encountered: