Skip to content
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

Doesn't work with RN 0.59 #90

Open
EugenePisotsky opened this issue Feb 16, 2019 · 2 comments
Open

Doesn't work with RN 0.59 #90

EugenePisotsky opened this issue Feb 16, 2019 · 2 comments

Comments

@EugenePisotsky
Copy link

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))

@ATShiTou
Copy link

ATShiTou commented Mar 4, 2019

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

@swissmanu
Copy link
Contributor

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.

swissmanu added a commit to swissmanu/react-native-typescript-transformer that referenced this issue Mar 13, 2019
Adds proposed fix for ds300#90 to the setup manual.
ds300 pushed a commit that referenced this issue Mar 13, 2019
Adds proposed fix for #90 to the setup manual.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants