-
-
Notifications
You must be signed in to change notification settings - Fork 246
Description
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 from create-react-app
react-scripts
package (or even try to add it to peerDependencies
), fork-ts-checker-webpack-plugin
fails with the following error:
Error: Cannot find module 'typescript'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/brunolemos/Projects/packages/create-react-app/node_modules/fork-ts-checker-webpack-plugin/lib/CancellationToken.js:6:10)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
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