-
-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to load 'react-hooks' #910
Comments
same problem
|
same here
I guess the problem lies on the eslint version 6.x, it's incompatible with the current version of prettier-vscode. |
same problem here |
Also experiencing this issue
|
Same problem here |
also experiencing this problem:
|
Same problem here
|
Same problem here windows 10 64bit |
Must be a vscode issue |
Same as @cemujax here
|
same problem windows 10 |
prettier 1.9.0 I get Similar problem |
facebook/react#16531 (comment)
|
@tylergraf I do like you talk but I can't fix this issue |
Yep facing same issue |
same |
I was able to correct this issue by deleting OS: Windows 10 |
I resolve this problem use |
Thanks, @izayl. I fixed this issue like you |
RIP productivity and sanity at work this week. Hope someone finds a proper fix |
Duplicate of #870 |
Also disabled Prettier ESLint integration to fix the issue. When I disabled it (vis User Settings panel), it was marked as deprecated in orange text. Now when I go back to look at it, I'm pretty sure the setting is no longer there. Did a bit of reading on this as well: https://github.com/prettier/prettier-vscode#vscode-eslint-and-tslint-integration |
Yeah I just narrowed down through trial and error that prettier eslint will not work on any project with react-scripts later than 3.0.1 Pretty devastating considering my entire workflow revolves around using this. So painful developing without it. I could imagine a lot of other people work this way as well. |
I think it's a problem generating the template with NPX when you execute |
In my case ES lint was installed globally so I resolved it by installing the 'eslint-plugin-react-hooks' package globally. This is the ES lint error report
|
@diljitvj Thanks !
and everything is back to normal 💪 |
Changed |
|
It worked! Thanks @diljitvj |
A temporary I did was to remove the eslintConfig in my package.json
|
According to Prettier's documentation it's recommended to use the ESLint or TSLint extensions directly so I just use |
Here too... Any workaround? |
@tupizz Try this => #910 (comment) |
This setting works for me. There is an update on prettier website also about the deprecation and changes. Besides that, I installed 'eslint-plugin-react-hooks' globally. |
* add the useLocalStorage hook * re-add tests * remove calvium setup (fails at the moment) * re-add eslint-plugin-react-hooks (required for some reason prettier/prettier-vscode#910) * bump 0.2.0
here as well, I solved it by installing the 'eslint-plugin-react-hooks' npm package locally as dev dependency |
@floroz That didn't seem to work for me :( |
I have gone through several steps:
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Failed to format React files
I'm using VSCode - insiders and Remote - SSH to develop on a remote machine. When using
create-react-app
, Prettiers fails to format the files and gives an error.Steps To Reproduce:
npx create-react-app app
Expected result
Formatted file.
Actual result
Error by Prettier:
Additional information
VS Code Version: 1.38.0-insider
Prettier & Prettier Plugin Version: 1.18.2 (installed on server) / 1.9.0
OS and version: Mac OS and Ubuntu 18.04 (remote development)
React-scripts: 3.1.1
settings.json
I already tried to install
eslint-plugin-react-hooks
both as a dev dependency and global on server.The text was updated successfully, but these errors were encountered: