Create-react-app: Help with typescript configuration

Created on 27 Dec 2016  路  3Comments  路  Source: facebook/create-react-app

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.

Most helpful comment

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/

All 3 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JimmyLv picture JimmyLv  路  3Comments

DaveLindberg picture DaveLindberg  路  3Comments

rdamian3 picture rdamian3  路  3Comments

alleroux picture alleroux  路  3Comments

stopachka picture stopachka  路  3Comments