Open lilianjin opened 5 years ago
I have the same problem.
Try it:
npm install -D babel-loader @babel/core @babel/preset-env
Before developing custom view - you need to dev compile nova assets itself.
Go to your_laravel_app/nova and run there
npm install && npm run dev
After that go to your_laravel_app/nova-components/views/your_custom_created_view/ and run there
npm install && npm run watch
Now all your code changes in your "your_custom_created_view" will take effect...
ERROR in /cs/sudaidai/git-respositories/nova/resources/js/views/Detail.vue Module not found: Error: Can't resolve 'babel-loader' in '/cs/sudaidai/git-respositories/nova/resources/js/views' @ /cs/sudaidai/git-respositories/nova/resources/js/views/Detail.vue 4:21-394 @ ./node_modules/babel-loader/lib?{"cacheDirectory":true,"presets":[["env",{"modules":false,"targets":{"browsers":["> 2%"],"uglify":true}}]],"plugins":["transform-object-rest-spread",["transform-runtime",{"polyfill":false,"helpers":false}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/js/views/Detail.vue @ ./resources/js/views/Detail.vue @ ./resources/js/views ^.\/.*$ @ ./resources/js/views.js @ multi ./resources/js/views.js ./resources/sass/views.scss