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

Running inferno-apollo-demo gives a fatal error about the "client" prop #2

Open
johncomposed opened this issue Apr 11, 2017 · 1 comment

Comments

@johncomposed
Copy link

browser.js:40 Uncaught Error: ApolloClient was not passed a client instance. Make sure you pass in your client via the "client" prop
    at invariant (browser.js:40)
    at new ApolloProvider (ApolloProvider.js:19)
    at Object.createClassComponentInstance (utils.js:21)
    at mountComponent (mounting.js:149)
    at Object.mount (mounting.js:17)
    at Object.render (rendering.js:89)
    at Object.<anonymous> (index.js:29)
    ...webpack stuff

The "client" object imported from apolloClient.js looks just fine. Poking around node_modules, it looks like the ApolloProvider construction function is being called with an empty props object no matter what the props actually are.

I wonder if this has something to do with inferno-compat, but we've reached the limit of my inferno knowledge at this point.

@zanettin
Copy link
Owner

Hi @johncomposed
Thx for your filing this issue 👍
I've update inferno-apollo to 1.0.2 and inferno-apollo-demo with the latest dependencies. Inferno Bable Plugin has an issue and throws warnings for Inferno is defined but never used. They work on that and I'll update the the demo again, when it is fixed 👍
Hope that helped you? Have a nice day.

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

2 participants