You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'am checking this repo for resources on how to estructure a TS project and I saw something interesting, https://github.com/piotrwitek/react-redux-typescript-realworld-app/blob/master/src/services/types.d.ts you are declaring all your types inside a namespace, I was trying to replicate this on my app created with create-react-app but I'm getting a module not found error, so I wanted to ask how do you make those namespace declarations import works in here.
Thanks
The text was updated successfully, but these errors were encountered:
That's a good question, I'm facing the same issue when trying to replicate this setup using the latest CRA ([email protected]). Any hints on how to fix that?
You must be doing something differently, please check and use the same exact syntax.
Please do not try to change the structure or file extensions, keep everything the same. Only when you have it working you can experiment and change things one by one to find out where is the problem.
Hi, I'am checking this repo for resources on how to estructure a TS project and I saw something interesting, https://github.com/piotrwitek/react-redux-typescript-realworld-app/blob/master/src/services/types.d.ts you are declaring all your types inside a namespace, I was trying to replicate this on my app created with create-react-app but I'm getting a module not found error, so I wanted to ask how do you make those namespace declarations import works in here.
Thanks
The text was updated successfully, but these errors were encountered: