Daemonite / material

Material Design for Bootstrap 4
http://daemonite.github.io/material/
MIT License
3.2k stars 725 forks source link

Latest vue-eslint-parser error #208

Open bretonio opened 5 years ago

bretonio commented 5 years ago

This a help request am I in the right place?

I have downloaded the Daemonite source code and installed it at the root of my project. I have see deed to the daemonite-material folder and run npm install. I have run npm run dist in that root folder of the styles and scripts and have repeatedly received the error

Error: Use the latest vue-eslint-parser

Following advice from this thread I took a shot with the ham-fisted

rm -rf node_modules package-lock.json && npm i

Nada.

Then I noticed that eslint-plugin-vue was not installed locally. But no dice. This does not seem to be a common error.

If you need config files for diagnoses let me know and thanks.

RiFi2k commented 5 years ago

From @mysticatea on that thread has the winner for sure.

@lincenying Ah, I see. Thank you for your investigation. Yes, this plugin requires the custom parser vue-eslint-parser to parse templates (this setting is included in plugin:vue/recommended). So it conflicts the "parser": "babel-eslint" setting.

The workaround is here: https://github.com/mysticatea/vue-eslint-parser#-options

"parserOptions": {"parser": "babel-eslint"} should work.

Just in case you never figured it out.