Git Product home page Git Product logo

Comments (5)

cdoremus avatar cdoremus commented on August 18, 2024 1

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.

AJamesPhillips avatar AJamesPhillips commented on August 18, 2024

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.

DanielRosenwasser avatar DanielRosenwasser commented on August 18, 2024

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.

wmonk avatar wmonk commented on August 18, 2024

Closing as this has not been updated in a while.

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.