-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Change how TypeScript dependency is handled #165
Comments
Just to add, the |
If we can help, we will! But since fork-ts-checker-webpack-plugin needs TypeScript to work I'm not sure what to suggest... Do you have an idea? PRs are gratefully received. With regards peerDependencies, I suspect they are here to stay because of Yarn Plug'n'Play: TypeStrong/ts-loader#841 |
We have found a solution on create-react-app's end, so no need to make changes here. |
Really pleased to hear it! Well done @brunolemos ! |
Hi, we actually decided against the work around above (mentioned by @brunolemos) and ended up needing to make changes to We're using a fork in Create React App for now and in the next few days I'll probably open a pull request with a proposal to change this behavior. |
We are trying to add TypeScript support to create-react-app, but there is currently one pending blocker: The maintainers don't want to add the typescript dependency to their repository directly, they want the users to add them on a project basis, allowing people to specify the version they want.
The problem is when I remove the
typescript
dependency fromcreate-react-app
react-scripts
package (or even try to add it topeerDependencies
),fork-ts-checker-webpack-plugin
fails with the following error:Any help is appreciated so we can merge facebook/create-react-app#4837.
I see there is #109 but I don't believe that will be enough to fix the issue.
The error points to this line: https://github.com/Realytics/fork-ts-checker-webpack-plugin/blob/237b1fd96fe5cd9450c8189a5c6f62bc5d119ba0/src/CancellationToken.ts#L5
The text was updated successfully, but these errors were encountered: