Git Product home page Git Product logo

Comments (8)

elboman avatar elboman commented on March 28, 2024

Not sure why you get the warning. Would you be able to provide a small webpackbin/codesandbox to replicate the error?

from react.

roger-king avatar roger-king commented on March 28, 2024

Sorry for the late response. I can't seem to replicate in webpackbin, but when I download the zip version I get multiple errors. I tried running the typescript example from the react repository when i run it I get

`ERROR in [at-loader] ./components/Nest.tsx:14:24
TS2339: Property 'props' does not exist on type 'Nest'.

ERROR in [at-loader] ./node_modules/@uirouter/react/lib/components/UIRouter.d.ts:1:1
TS2688: Cannot find type definition file for 'react'.

ERROR in [at-loader] ./node_modules/@uirouter/react/lib/components/UISref.d.ts:1:1
TS2688: Cannot find type definition file for 'react'.

ERROR in [at-loader] ./node_modules/@uirouter/react/lib/components/UISrefActive.d.ts:1:1
TS2688: Cannot find type definition file for 'react'.

ERROR in [at-loader] ./node_modules/@uirouter/react/lib/components/UIView.d.ts:1:1
TS2688: Cannot find type definition file for 'react'.

ERROR in [at-loader] ./node_modules/@uirouter/react/lib/components/UIView.d.ts:41:145
TS2503: Cannot find namespace 'JSX'.

ERROR in [at-loader] ./node_modules/@uirouter/react/lib/components/UIView.d.ts:72:15
TS2503: Cannot find namespace 'JSX'.

ERROR in [at-loader] ./node_modules/@uirouter/react/lib/interface.d.ts:1:1
TS2688: Cannot find type definition file for 'react'.`

This happens on multiple computers so I know it isnt a local issue

from react.

roger-king avatar roger-king commented on March 28, 2024

After doing some deep digging. it seems to be an issue with react-hmre

from react.

elboman avatar elboman commented on March 28, 2024

Are you using any starter-kit/boilerplate? Do you know how would I reproduce the bug on my machine so I can dig a bit and see if I can do anything about it?

from react.

roger-king avatar roger-king commented on March 28, 2024

I am. I'm working on my own react-typescript starter seed.

https://github.com/roger-king/reactjs-modern-seed

npm install
npm run generate:container
npm run dev

The second command will get you a quick container or page. Can do a Hello world.

from react.

roger-king avatar roger-king commented on March 28, 2024

Any chance we have any insight on these warning I could be getting?

from react.

elboman avatar elboman commented on March 28, 2024

Hey, sorry for the late response.

I tried you repo reverting back to 24a4349 before the switch to react-router, but there must be something wrong with the set up as spinning up the app with yarn run dev gives me lots of errors from the at-loader on compile.

I think the project loads react and react-dom type definition twice and that's why it complains. Any branch where I can test this out?

from react.

eddiemonge avatar eddiemonge commented on March 28, 2024

As this issue is a bit old, it is being closed. If you feel like the problem reported is still valid, please add a comment saying it is still affecting you. We will reevaluate it and if it is valid we will reopen it.

Thank you for supporting and contributing to the project.

from react.

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.