ds300/react-native-typescript-transformer

Doesn't work with RN 0.59

EugenePisotsky opened this issue ยท 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 (facebook/metro#111 (comment))

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 react-native@0.59.