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

Compatibility with babelRelayPlugin #2

Closed
abhishiv opened this issue Jun 3, 2016 · 2 comments
Closed

Compatibility with babelRelayPlugin #2

abhishiv opened this issue Jun 3, 2016 · 2 comments

Comments

@abhishiv
Copy link

abhishiv commented Jun 3, 2016

Hey @skevy

Thanks for this preset, and the taking the time to look at issues.

I just wanted to check if this plugin is compatible with the babelRelayPlugin. In my case using relay 0.9 and RN@0.26.3, I get Unexpected invocation at runtime error for Relay.QL.

I also saw the your PR facebook/relay#714. For testing I put a console.log message before this line, and it doesn't run. However console.log just after line 56 works.

Clearing the watchman cache via watchman watch-del-all and npm run start --reset cache doesn't work as well.

My .babelrc looks like this

{
  "passPerPreset": true,
  "presets": [
    {"plugins": ["./plugins/babelRelayPlugin"]},
    "react-native-stage-0"
  ]
}

Someone on reactiflux suggested creating a rn-cli.config.js file, but that doesn't help as well.

Any ideas?

@abhishiv
Copy link
Author

abhishiv commented Jun 3, 2016

@abhishiv
Copy link
Author

abhishiv commented Jun 3, 2016

Manually clearing the cache, and using the fix in above post fixes this. So I'll close this issue. Thanks.

@abhishiv abhishiv closed this as completed Jun 3, 2016
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

1 participant