material icon indicating copy to clipboard operation
material copied to clipboard

Latest vue-eslint-parser error

Open bretonio opened this issue 6 years ago • 1 comments

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.

bretonio avatar Dec 23 '18 13:12 bretonio

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.

RiFi2k avatar Jan 09 '19 05:01 RiFi2k