-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Modern] Error when parsing modules containing containers at runtime #1631
Comments
Same problem with react native. Here is my .babelrc:
|
Same problem here. Also, this error seems to happen only when fragment is composed. |
CompatContainerBuilder is used if you're using the compat mode and expects You mentioned you're not using compat but only modern. Could you post some example code that reproduces this issue? |
I have a repro. The work around for now is to replace We'll get this fixed for rc.2 |
I was about to say, I was following the code and couldn't find any branch where using modern wouldn't cause the Compat container stuff to be used. |
Hm, this workaround doesn't seem to make any difference for me, i'll have to wait for rc.2 |
@AndrewIngram it's possible you're encountering a different issue then. Configuring babel to produce compat output is what the compat container looks for. I'd hate for you to wait for rc.2 only to find it's not solved due to be caused by something else. Do you have some shortened version to repro? |
@leebyron I can try and come up with a simpler example, another option is I can give you temporary access to my repo, only if you think that's quicker. It's a pretty tiny RN app built with create-react-native-app. |
I'm cool with that :) |
Adding |
I'm using just the modern API, no compat.
I have relay-compiler working, and I'm using the babel plugin, when I try to run my app (React Native in this case), it throws an exception when trying to evaluate modules containing containers.
It seems like the babel plugin is replacing the graphql tag with a function returning a fragment (the import returns the fragment), whilst
ReactRelayCompatContainerBuilder
is expecting a fragment (rather than a function returning one).The text was updated successfully, but these errors were encountered: