react-native-typescript-transformer
react-native-typescript-transformer copied to clipboard
Doesn't work with RN 0.59
Hello,
After upgrading to 0.59.0-rc.1 it stopped working:
Loading dependency graph...error Cannot read property 'transformFile' of undefined
I suppose it's related to metro version (https://github.com/facebook/metro/issues/111#issuecomment-456457949)
I have issues with RN0.59 , too. It does not work at all.
so far, we had to add react-native-typescript-transformer
through the rn-cli.config.js
file. this does not work anymore.
we can achieve the known behavior by putting the configuration into the new metro.config.js
file instead:
module.exports = {
transformer: {
// ... other configuration by react-native app template
babelTransformerPath: require.resolve('react-native-typescript-transformer') // 💁♂️ Add this line
}
};
this worked for me with [email protected]
.