-
Notifications
You must be signed in to change notification settings - Fork 238
ESLint errors prevent new app from being generated #43
Comments
@twnaing I think you hit a momentary bug in the npm ecosystem. Details here: eslint/eslint#17317 Sounds like if you upgrade your packages ( |
Let me know if you have any other issues with this. |
The issue is that the error occurred during the Should I also specify minimal yarn version? I use asdf to fix my versions. |
@twnaing I think you will need to delete the generated app directory and then start over by running |
These are the steps I took
$ rails new . \
-d postgresql \
-m https://raw.githubusercontent.com/mattbrictson/rails-template/main/template.rb
|
@twnaing sorry you are running into these problems. It seems like the last couple weeks have been a perfect storm of dependency conflicts in the ESlint ecosystem. You didn't post the latest error message that you are seeing, so I can only take a guess. But based on what I am seeing, I suspect you are hitting this error:
This is due to the fact that Prettier 3.0 was just released a few days ago, and is causing the eslint-plugin-prettier package to break. You can see the discussion here: prettier/eslint-plugin-prettier#562 . The rails-template project is susceptible to these breakages because when you run Hopefully eslint-plugin-prettier will release a new version that is compatible with Prettier 3.0. In the meantime I will adjust rails-template to use an alpha version of eslint-plugin-prettier that should work around the problem. See PR #47. If I guessed incorrectly and |
I am having the problem with following messages
I have nodes
20.2.0
, yarn1.22.10
and the package.json has this.The text was updated successfully, but these errors were encountered: