vuejs/vue-ssr-webpack-plugin and webpack 5
See original GitHub issueWhat problem does this feature solve?
github missing repository vuejs/vue-ssr-webpack-plugin, i update webpack to version 5 and have error
[vue-server-renderer-webpack-plugin] webpack config output.libraryTarget
should be “commonjs2”.
What does the proposed API look like?
in my output.libraryTarget is libraryTarget: ‘commonjs2’
Issue Analytics
- State:
- Created 3 years ago
- Reactions:13
- Comments:46 (3 by maintainers)
Top Results From Across the Web
vue-ssr-webpack-plugin - npm
webpack plugin for generating a bundle manifest to use with Vue 2.x bundleRenderer. Latest version: 3.0.0, last published: 6 years ago.
Read more >To v5 from v4 - webpack
This guide aims to help you migrating to webpack 5 when using webpack directly. ... Webpack 5 requires at least Node.js 10.13.0 (LTS),...
Read more >Webpack 5 Crash Course | Frontend Development Setup
In this video, we will create a Webpack dev environment from scratch including... Webpack setupWebpack Dev ServerHTML Webpack PluginSass ...
Read more >webpack Tutorial: How to Set Up webpack 5 From Scratch
Content. What is webpack; Installation; Basic configuration. Entry; Output. Plugins. HTML template; Clean. Modules and Loaders.
Read more >A mostly complete guide to webpack 5 (2020)
Order of webpack loaders matters! Working with SASS. Working with modern JavaScript. How to set up React, webpack 5, and Babel from scratch....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The full set of changes I needed to make everything work.
npm install patch-package -D
npx patch-package vue-server-renderer
donezo
Also, I think it’s worth mentioning that even after my build succeeded I couldn’t launch my bundle due to this error:
The problem was in function that starts on line
9056
:It failed 'cause for some reason
initial
is now empty. Sovar needed = [initial[0]].concat(async, initial.slice(1));
ended up as[undefined]
. I fixed this as shown above. And only after that my build launched fine.