vuejs / eslint-plugin-vue

Official ESLint plugin for Vue.js
https://eslint.vuejs.org/
MIT License
4.47k stars 667 forks source link

I tried cloning the project and running, but something went wrong #2473

Closed dddssw closed 5 months ago

dddssw commented 5 months ago

After cloning the repository, I executed npm run docs:watch, but it did not proceed as expected. What should I do? image

FloEdelmann commented 5 months ago

Did you install Node.js 20?

dddssw commented 5 months ago

I used node18 before, but I still got the same error when I switched to node20. image

FloEdelmann commented 5 months ago

Indeed, I can reproduce the issue, albeit with a slightly different error message:

grafik

It might have something to do with the fact that eslint is shimmed in the docs build, so eslint/use-at-your-own-risk is undefined. @ota-meshi could you have a look at this please?

ota-meshi commented 5 months ago

Hmm. It works fine on my local machine 🤔 Since the demo still uses ESLint v8, new eslint.Linter().getRules() should succeed and not try to load eslint/use-at-your-own-risk.

FloEdelmann commented 5 months ago

Oh right, with an npm install before npm run docs:watch, it also works for me. (I had the ESlint v9 testing branch checked out locally before.)

@dddssw, does that also resolve the issue for you?

dddssw commented 5 months ago

@FloEdelmann emm,It works after I change the branch.I shouldn't use master branch to run it?

ota-meshi commented 5 months ago

I think it works on the master branch.