Closed atoy40 closed 7 years ago
PolymerApolloBehavior = new _polymerApollo2.default({ apolloClient: apolloClient });
Check what happens if you change this line to
PolymerApolloBehavior = new _polymerApollo2({ apolloClient: apolloClient });
By the way Its already converted to es5 before publishing to npm.
Same error : _polymerApollo2 is not a constructor
console.log(_polymerApollo2); ?
this is working : new _polymerApollo2.PolymerApollo({ apolloClient: apolloClient });
ok, i've found :
import PolymerApollo from 'polymer-apollo';
as to be
import { PolymerApollo } from 'polymer-apollo';
so it's just a small mistake in your README :)
@atoy40 Oh. Okay. Sorry for that. I've changed the readme. Thanks for reporting. closing the issue. :)
Hello, i'm trying tu use your project on a polymer/graphql application i'm working on, and i've a problem I've "webpacked" my js code andload it into the browser with a script tag, but when it's loaded, i get a :
Maybe this part of the webpack output can help you to help me :) :
I've used the chromium debbuger, and it seems _polymerApollo2 has no property "default". A problem with the "babelisation" done at npm install ? (apollo-client class own a default property and constructs well)
thks, and don't hesitate to ask me more informations :)