Comments (5)
There is a file attached to the issue above that shows the compile errors. As instructed in the README, I ran the command create-react-app react-ts-test --scripts-version=react-scripts-ts
followed by cd my-react-ts-test
and then yarn start
. My TypeScript version is 2.3.2 and I installed react-scripts-ts
1.4.0 globally. My version of create-react-app
is 1.3.1.
from create-react-app-typescript.
Hi @cdoremus can you post some of the errors your seeing please? What command are you issuing and from which directory? What version of typescript are you running? Thanks.
from create-react-app-typescript.
I tried yarn start
on the sample that you gave and could not reproduce the errors that you're encountering at all. Even a plain compile with tsc
hasn't given me these issues.
My thinking is that for some reason there are potentially two versions of @types/react
being found on your system somehow that are conflicting. A reasonable way to check this might be to dive into /home/craig/node_modules/@types/react/index.d.ts
, going to one of the declarations with an error (e.g. textPath
) and finding all references on there.
Can you let me know what you end up finding?
from create-react-app-typescript.
Closing as this has not been updated in a while.
from create-react-app-typescript.
@cdoremus just re-read your comment - did you manage to get this working. I see that you installed react-script-ts
globally, which you definitely don't need to do. react-scripts-ts
is installed locally to your project, which as @DanielRosenwasser suggests might mean you have duplicated versions of @types/react
.
from create-react-app-typescript.
Related Issues (20)
- Browserlist error
- CRA 2.0 HOT 31
- Include nodejs v8 for for Travis CI build
- Remove dependency on babel HOT 2
- Using jest-extended? HOT 1
- Husky hooks not working HOT 1
- Update webpack-dev-server HOT 10
- Add documentation detailing differences between CRA 2.0 and CRA-TS HOT 10
- Source Maps don't work for `js` or `jsx` files in live dev mode.
- Version 4.0.8: Internet Explorer no working anymore HOT 2
- Build process is almost 20 minutes long HOT 1
- postcss support? HOT 1
- Why is Jest's version hard coded to "20.0.4"? HOT 1
- Jest doesn't work when I add lint-staged
- Maintenance
- Tslint rules are barriers to entry HOT 2
- [Help] Compatibility IE + Firefox old versions problems
- Are 4.X.X versions are legit? HOT 1
- Jest doesn't resolve absolute paths from tsconfig HOT 1
- npm start dont work on freeBSD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-react-app-typescript.