Closed
Description
Version
15.7.1
Steps to reproduce
-
Install webpack globally
-
Install vue-loader locally (webpack does not respect global vue-loader installs)
-
Create a webpack.js.config like this:
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = {
entry: './main.js',
mode: 'development',
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader'
}
]
},
plugins: [
new VueLoaderPlugin()
]
}
- Create an entry point (main.js in code snippet)
- Run
npx webpack
What is expected?
Correct module imports
What is actually happening?
Wrong import paths are used
Cannot find module 'webpack/lib/RuleSet
Metadata
Metadata
Assignees
Labels
No labels