django-vue-template icon indicating copy to clipboard operation
django-vue-template copied to clipboard

Error installing Vuetify

Open BGriffy78 opened this issue 5 years ago • 1 comments
trafficstars

Hey,

Nice template - thanks for your effort creating this.

When I try and add Vuetify (via a 'vue add vuetify'), the plugin successfully installs, but I get around 95 errors when trying to serve. The errors are all

Syntax Error: SyntaxError: ..... Support for the experimental syntax 'objectRestSpread' isn't currently enabled

Add @babel/plugin-proposal-object-rest-spread (https://git.io/vb4Ss) to the 'plugins' section of your Babel config to enable transformation.

I'm fairly novice with JS and front-end frameworks - I've tried for sometime to fix this with no luck including trying to add the following to the package.json babel configuration.

"plugins": ["@babel/plugin-proposal-object-rest-spread"]

I guess I dont understand how the configuration of babel works in this template, or I am barking up the wrong tree.

Any help appreciated - thanks!

BW

BGriffy78 avatar Mar 29 '20 18:03 BGriffy78

I fixed the error by upgrading all node modules. I believe npm update worked for me

TimonPost avatar Apr 14 '20 12:04 TimonPost