react-native-typescript-transformer icon indicating copy to clipboard operation
react-native-typescript-transformer copied to clipboard

Doesn't work with RN 0.59

Open EugenePisotsky opened this issue 5 years ago • 2 comments

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)

EugenePisotsky avatar Feb 16 '19 20:02 EugenePisotsky

I have issues with RN0.59 , too. It does not work at all.

ATShiTou avatar Mar 04 '19 13:03 ATShiTou

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].

swissmanu avatar Mar 13 '19 08:03 swissmanu