DigitalCloud / nova-custom-views

This package allows you to override default nova views
78 stars 41 forks source link

Is there a limit to the node version? #17

Open lilianjin opened 5 years ago

lilianjin commented 5 years ago

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

kistasi commented 5 years ago

I have the same problem.

freshway commented 5 years ago

Try it: npm install -D babel-loader @babel/core @babel/preset-env

xUJYx commented 3 years ago

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