-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
react-scripts v3 via npm requires a peer of typescript@* #6834
Comments
That's a good point. I'm not sure if there's anything we can do about it unfortunately but we'll look into it. |
We ran into the same issue way back when adding TypeScript support when we added /cc @bradzacher do you think it would be reasonable to remove the peer dep on |
I feel a good solution is that everyone should just use typescript 😄 But seriously, I don't think it's a huge deal if we remove them, considering we have it set to cc @JamesHenry, @j-f1, @armano2 |
Fine with me, we’ll make the update on our side |
@jrock2004 - this issue is open, and the attached PR #6859 hasn't been merged yet. |
Has there been any activity on this issue since late April? It's not a showstopper, but it's a little annoying. |
A related issue it the typescript-eslint dependencies (v1.13.0) are now out of date. Using eslint 6 with react-scripts 3.1.1 causes various circular dependency issues. Newer typescript-eslint releases are available that support eslint 6. This is in a non-Typescript project.
|
The usage of typescript as a peer dependency in react-scripts and eslint-config-react-app is incorrect, as they don't always require TypeScript. TypeScript and all related dependencies should be removed from these packages, then another pair of packages should be made that add the peer dependencies when used with |
and another funny thing is that Maybe upgrade to |
react-script 3.1 cannot run eslint well... facebook/create-react-app#6834
It would be great if this could get fixed. |
Please add this test for future builds:
|
I'm getting this warning and create-react-app isn't creating the src or public files. It only creates node_modules, pavkage.json and package-lock.json. Nothing else is installed and once done it says "found 0 vulnerabilities". I've tried every possible walkaround and cannot get create-react-app to actually create a react app. Getting really frustrating |
Very quiet here, do we have any update or even a hack to suppress this warning in the meantime? |
I finally found a fix. Aparently there was something in my npm cache preventing me from moving forward. Using npm cache delete cleared my cache and fixed the issue |
@battleb2014 That didn't work for me. I have yarn installed so it is using that but |
To satisfy this upstream issue: - facebook/create-react-app#6834 https://phabricator.endlessm.com/T29832
I see several options:
It looks like there's a PR to make But still, it would fail if there are any |
I think react-scripts should just depend on TypeScript, as there’s already plenty of other optional tools in it and the architecture seems to be coupled to TypeScript template support (meaning react-scripts itself depends on TypeScript, not just cra-template-typescript) |
I would go with:
|
Still getting
|
use npm instead of yarn and also upgrade node, npm versions and clean cache. upgrade node upgrade npm clean npm cache |
@rohitgurudasani's work around works for me. Thanks a lot! I however have to clear the cache every now again to remove the warnings. |
The inclusion of @typescript-eslint/eslint-plugin and @typescript-eslint/parser in react-scripts means there are now a lot of warnings about typescript being an unmet peer dependency when part of a project not using typescript.
I understand it is just a warning and I know I can ignore it, but I still wanted to bring it up. So many warnings coming from this package makes it harder to pull out the warnings I do want to fix.
The text was updated successfully, but these errors were encountered: