gtalarico / django-vue-template

Django Rest + Vue JS Template
https://django-vue-template-demo.herokuapp.com/
MIT License
1.59k stars 407 forks source link

Error installing Vuetify #51

Open BGriffy78 opened 4 years ago

BGriffy78 commented 4 years ago

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

TimonPost commented 4 years ago

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