ds300 / react-native-typescript-transformer

Seamlessly use TypeScript with React Native
MIT License
657 stars 50 forks source link

This doesn't seem to work with RN 0.54 #50

Closed wynch closed 6 years ago

wynch commented 6 years ago

When starting Metro, I get a Cannot find module 'metro/src/transformer' error.

emin93 commented 6 years ago

It should also work with RN 0.54, it's being used it in the React Native TypeScript template.

If you want to see how it's configured, just run this in your terminal:

react-native init MyApp --template typescript
cd MyApp
node setup.js
ds300 commented 6 years ago

Hi! I'm going to close this, since there doesn't seem to be any activity and I can't reproduce the problem. Let me know if it's still an issue for you!

wynch commented 6 years ago

Sorry for not coming back sooner on this !

I did try the Rect Native Typescript template, and managed to make it work. In the end, I think it was related to my package.json and package-lock.json being out of sync : I deleted the lock file and did an npm install again, it worked !

Thanks !

Arlen22 commented 6 years ago

In my case I had to run npm dedupe to pull it out of /node_modules/react-native/node_modules/