In Webpack5, when the output.target is "node". it will use the installChunk(require("../" + __webpack_require__.u(chunkId))); to load the all async modules. and "vue-server-renderer/server-plugin" will put all modules in .json file.
The reason it on the "../". while renderToString() was executed.
cause cannot resolve and async components bundle with prefix ”.../“ in evaluateModule().
Version
2.7.14
Reproduction link
github.com
Steps to reproduce
step 1: write a simple vue-router use cases:
Step 2: configuration vue.config.js for server bundle of SSR Mode:
Step 3: write a render test case:
What is expected?
run command:
npm run build
, and it will emit some errors:What is actually happening?
In Webpack5, when the output.target is "node". it will use the
installChunk(require("../" + __webpack_require__.u(chunkId)));
to load the all async modules. and "vue-server-renderer/server-plugin
" will put all modules in .json file.The reason it on the "../". while
renderToString()
was executed. cause cannot resolve and async components bundle with prefix ”.../“ inevaluateModule()
.finally, i am apologize for my pool english.