Skip to content

Cannot find module 'webpack/lib/RuleSet' #1427

Closed
@luoway

Description

@luoway

Version

15.4.0

Reproduction link

https://www.npmjs.com/package/vue-loader/v/15.4.2

Steps to reproduce

Init a project without installing webpack locally , and run global webpack in terminal

What is expected?

webpack build successfully

What is actually happening?

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


Due to line 2 in node_modules/vue-loader/lib/plugin.js

const RuleSet = require('webpack/lib/RuleSet')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions