laravel-mix@2.1.11
vue-loader@15.3.0
vue-loader を @14.2.2 から @15.3.0 にアップでしたらエラーが発生
solution:
webpack.mix.js にプラグインを適用
let mix = require('laravel-mix');
const VueLoaderPlugin = require('vue-loader/lib/plugin')
mix.webpackConfig({
plugins: [
new VueLoaderPlugin()
]
});
参照:
また、vue-loader を @14.2.2 から @15.3.0 にアップデートしたら yarn run watch 時の下記のエラーメッセージが発生しなくなった。
No parser and no filepath given, using 'babylon' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
yarn の全てのコマンドをした時のエラーメッセージ
yarn
uses deprecated new Buffer()
constructor and causes deprecation warnings when run with NODE_PENDING_DEPRECATION=1
.
上記も発生しなくなった。