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.

vuetify-loader 1.6 is incompatible with laravel mix

See original GitHub issue

After updating vuetify-loader from 1.5 to 1.6 I get the error message below. Downgrading from 1.6 to 1.5 solves the error message.

\node_modules\webpack-cli\bin\cli.js:281 throw err; ^ Error: [VueLoaderPlugin Error] vue-loader 15 currently does not support vue rules with oneOf. at VueLoaderPlugin.apply (node_modules\vue-loader\lib\plugin-webpack4.js:46:13) at webpack (node_modules\webpack\lib\webpack.js:51:13) at processOptions (node_modules\webpack-cli\bin\cli.js:272:16) at yargs.parse (node_modules\webpack-cli\bin\cli.js:364:3) at Object.parse (node_modules\webpack-cli\node_modules\yargs\yargs.js:567:18) at node_modules\webpack-cli\bin\cli.js:49:8 at Object.<anonymous> (node_modules\webpack-cli\bin\cli.js:366:3) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (node_modules\webpack\bin\webpack.js:156:2) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! AppData\Roaming\npm-cache_logs\2020-07-13T08_41_49_430Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ watch: npm run development -- --watch npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ watch script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! AppData\Roaming\npm-cache_logs\2020-07-13T08_41_49_526Z-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:29 (7 by maintainers)

github_iconTop GitHub Comments

36reactions
KaelWDcommented, Jul 17, 2020

I discovered that mix extensions have access to the full webpack config, unlike the mix.webpackConfig(cb) method. You should do this instead of using mix.webpackConfig:

mix.extend('vuetify', new class {
    webpackConfig (config) {
        config.plugins.push(new VuetifyLoaderPlugin())
    }
})
mix.vuetify()

~~I also found this extension which should work too: https://github.com/Nothing-Works/vuetifyjs-mix-extension~~ Mix’s plugin order is stupid: https://github.com/JeffreyWay/laravel-mix/issues/2439#issuecomment-659312335

Laravel is great, but its entire JS setup is garbage. I always use either a custom webpack config or vue-cli when I have to work with it.

8reactions
KaelWDcommented, Jul 17, 2020

Swap new VuetifyLoaderPlugin() and new VueLoaderPlugin()

Read more comments on GitHub >

github_iconTop Results From Across the Web

vuetify-loader 1.6 is incompatible with laravel mix, vue-loader ...
Right so you are using Vuetify this is because vuetify-loader 1.6 has some problems with laravel mix setup. More specifically it's because ...
Read more >
How To Get Vuetify Styles To Work In Laravel 8 - ADocLib
Ask questionsvuetify-loader 1.6 is incompatible with laravel mix. After updating at node_modules\webpack-cli\bin\cli.js:49:8 at Object.
Read more >
Vuetifyjs | Laravel Mix Extension
This is because the vuetify-loader current release is not supported webpack 5, the @next version has the webpack 5 support. There are two...
Read more >
[Solved]-vue scoped slot not being exposed-vuetify.js - appsloveworld
[Solved]-vue scoped slot not being exposed-vuetify.js ... vuetify-loader 1.6 is incompatible with laravel mix, vue-loader 15 currently does not support vue ...
Read more >
sass loader has been initialized using an options object that does ...
Seems same issue like here: https://github.com/JeffreyWay/laravel-mix/issues/2206. Solution is. npm uninstall --save-dev sass-loader npm install --save-dev ...
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