I'm trying to use vue-admin with laravel-mix but every time I run npm run dev
It always fails with:
You may need an appropriate loader to handle this file type. | store, | nprogress, | ...App | }) |
I am aware of the one possible solution here: https://github.com/JeffreyWay/laravel-mix/issues/76
Tried node versions: 6.x, 7.x
But creating a .babelrc file with the plugin does not help. Is it possible, that somehow the babelrc is overwritten when compiling the vue-admin module?
Do I have to add a custom query to the webpack config?
.babelrc:
{
"presets": [
["es2015", { "modules": false }]
],
"plugins": ["transform-object-rest-spread"]
}
via Gazben