Does not work with vue-loader?
See original GitHub issueconfig like this :
module: {
rules: [{
test: /\.vue$/,
loader: "vue-loader"
},
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: "babel-loader",
options: {
presets: [
[
"@babel/preset-env",
{
targets: {
browsers: ["last 2 versions", "safari >= 7"]
}
}
]
]
}
}
},
...
]
},
plugins: [
new VueLoaderPlugin(),
new BabelEsmPlugin()
],
some errors:
UnhandledPromiseRejectionWarning: Error: [VueLoaderPlugin Error] No matching use for vue-loader is found.
Make sure the rule matching .vue files include vue-loader in its use.
at VueLoaderPlugin.apply (/Users/wzc0x0/Desktop/MySpace/webpack-boilerplate/node_modules/vue-loader/lib/plugin.js:65:13
)
at compiler.hooks.make.tapAsync (/Users/wzc0x0/Desktop/MySpace/webpack-boilerplate/node_modules/babel-esm-plugin/src/in
dex.js:66:18)
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Why vue-loader & webpack-4 is not working? - Stack Overflow
Running this command node_modules\.bin\webpack --config webpack.config.js --mode development it should be able to work but it doesn't. These are ...
Read more >vue-loader fails to load vue-template-compiler #1781 - GitHub
I think I have found a solution to the problem. The main reason for this problem is the webpack imported by vue-loader and...
Read more >Getting Started - Vue Loader
Follow this guide if the built-in configuration of Vue CLI does not suit your needs, or you'd rather create your own webpack config...
Read more >vue-loader - npm
Start using vue-loader in your project by running `npm i vue-loader`. There are 2931 other projects in the npm registry using vue-loader.
Read more >vue-loader - Awesome JS
<script setup> support is experimental. It does not work well with thread-loader . In Vue CLI, you need to set parallel: false for...
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 FreeTop 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
Top GitHub Comments
Hi! Sorry for the late reply.
I was able to make it work for your repo with the following code:
Output:
OH! Very Well ! Thanks a lot! 😁