Skip to content

Webpack 5 compatibility: Missing module RuleSet #1599

Closed
@Lyrkan

Description

@Lyrkan

Version

15.7.1

Reproduction link

https://github.com/Lyrkan/repro-vue-loader-webpack5

Steps to reproduce

  • Create a project that uses Webpack 5 and vue-loader 15.7.1
  • Try to run Webpack

What is expected?

No error

What is actually happening?

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


Hi there,

Webpack 5 (that just got into beta) removed the RuleSet class that is currently used by the vue-loader plugin in the following PR: webpack/webpack#9138

This makes any attempt to use the plugin fail with a "Cannot find module webpack/lib/RuleSet" error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions