question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not work with vue-loader?

See original GitHub issue

config 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:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
prateekbhcommented, Jul 11, 2019

Hi! Sorry for the late reply.

I was able to make it work for your repo with the following code:

new BabelEsmPlugin({
  filename: 'static/js/[name].[contenthash].mjs',
  chunkFilename: 'static/js/[name].[contenthash].mjs',
  excludedPlugins: ['VueLoaderPlugin', 'BabelEsmPlugin']
})

Output: Screen Shot 2019-07-10 at 5 15 43 PM

1reaction
wzc0x0commented, Jul 15, 2019

OH! Very Well ! Thanks a lot! 😁

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found