Vue-loader: Support webpack@5

Created on 19 Feb 2020  路  8Comments  路  Source: vuejs/vue-loader

Version

16.0.0-alpha.3

Reproduction link

https://github.com/vankop/vue-next-webpack-preview

Steps to reproduce

This already done for vue-loader@15, will be great to do this for next branch as well

What is expected?

build completed

What is actually happening?

Error: Cannot find module 'webpack/lib/RuleSet' here

Most helpful comment

@foxxyz vue-loader@next now points to 16.0.0-beta.1! It's a bit untested, so I'll keep this open for now.

All 8 comments

I also encountered this problem. Is there any good solution? Webback4 is normal, and 5 will report this error
image

I can confirm Webpack 5 support is working in the next branch (see 552bcb75a937e7b07838de079156b0205766c190), so at this point it's just waiting for @yyx990803 to make 16.0.0-beta.1 into an official release.

@foxxyz vue-loader@next now points to 16.0.0-beta.1! It's a bit untested, so I'll keep this open for now.

Hello! :wave:
What about vue 2.x.x support on webpack 5 ?
It seems it doesn't work for me with vue-loader@next :disappointed:

Edit, hum, it actually seems to work with vue-loader@^15.0.0 :smile_cat:

@skjnldsv may you share a webpack.dev.conf.js file working in webpack 5? Mine is taking to much time to build on dev mode. Something like 10x slower than webpack 4 for vue.

@skjnldsv may you share a webpack.dev.conf.js file working in webpack 5? Mine is taking to much time to build on dev mode. Something like 10x slower than webpack 4 for vue.

Sure https://github.com/nextcloud/webpack-vue-config/pull/41

Thank you i got my problem.

The eslint-webpack-plugin: "2.1.0" was making it slow. Changing it to 2.2.1 makes the build several times faster.

Both v15 (for Vue 2) & v16 (for Vue 3) have supported webpack 5, and corresponding tests have been added. So I'm closing this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryanelian picture ryanelian  路  3Comments

frangio picture frangio  路  3Comments

C0deZLee picture C0deZLee  路  3Comments

TheVexatious picture TheVexatious  路  3Comments

amorphine picture amorphine  路  3Comments