I tried to adapt the configuration to use pure typescript as can be seen in this repo:
https://github.com/Aranir/create-react-app-typescript
The application compiles but the page stays blank. I am certainly missing something simple.
Currently only the webpack.config.dev.js
file has been adapted to use typescript.
I tried to use:
create-react-app my-awesome-typescript-app-folder --scripts-version=git://github.com/mattiamanzati/create-react-app.git#typescript-support
But this seems not to be working anymore:
Cannot find module '.../my-awesome-typescript-app-folder/node_modules/git:/github.com/mattiamanzati/create-react-app.git#typescript-support/package.json'
Any help would be appreciated.
Hey, I am maintaining a fork of react-scripts
called react-scripts-ts
which is published to NPM. You might want to have a look at it, as it's working perfectly at the moment with up-to-date fixes from facebook's react-scripts
. https://github.com/wmonk/create-react-app/
Thank you that is very helpful!
TypeScript is now officially supported as of Create React App 2.1. Read the release notes to get started!
Most helpful comment
Hey, I am maintaining a fork of
react-scripts
calledreact-scripts-ts
which is published to NPM. You might want to have a look at it, as it's working perfectly at the moment with up-to-date fixes from facebook'sreact-scripts
. https://github.com/wmonk/create-react-app/