-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New project with typescript template causes Haste module naming collision error #26427
Comments
There appears to be a |
Removing the |
@kristianhasselknippe if you still want to use typescript after removing the template folder, just follow the instructions on https://github.com/Microsoft/TypeScript-React-Native-Starter |
I'm facing the same issue. The above solution definitely will work, but it feels wrong... |
FYI... Just over a month ago, I used the documented Happened to notice today that the exact same command produces a completely different project. Here is the repository, with the Baseline commit being what was generated by the command at the time. |
@stefanedberg I also found react-native-community/react-native-template-typescript#64. Don't if it's related or whether it could help. |
FYI.. Confirmed that the updated command of:
starts up an entirely different looking installer (blue logo, etc). Also looks like you have to refer to the template directly (not just typescript). |
This worked for me. |
I was caught out by this too. abdullah-sr soloution worked for me. The CLI git hub page recommends using the local command npx react-native init MyApp --template react-native-template-typescript rather than the global react-native init MyApp --template typescript
To be fair even the getting started documentation is lagging behind https://facebook.github.io/react-native/docs/typescript |
It seems that people behind react native strives the community to move to flutter platform. Lately coding on this is a hell of warnings, deprecations and this kind of problems where something that works a month ago, suddenly stops working with no reasonable cause |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
When creating a new React Native project with typescript template the following error occurs:
React Native version:
Steps To Reproduce
Describe what you expected to happen:
The development server should start and the app would run successfully.
The text was updated successfully, but these errors were encountered: