-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Cannot find module apollo-client/gql
#327
Comments
You're right! I just realized the issue, will publish a fix in 10 minutes. |
Isn't the fix that gql is now in its own repo and you have to do this?
|
That is not an acceptable fix because what you are suggesting is there has been a major API change and you just incremented a PATCH number (see semver http://semver.org/). To actually tell you what happened on our side is that we had a major breakage because npm considered it was ok to go to 0.3.21. |
By the way, you should emit a deprecation warning when people are trying to import |
I think that's better. React warns breaking changes mostly like this and it works really well! |
@rricard send over that deprecation warning PR!! :) |
@abhiaiyer91: when I'll have some time but if there is some stuff to revert back, I think it's better that the @apollostack's team takes care of it |
This was an accidental change. I had no intention to break importing from |
Okay, I'll just do a deprecation warning PR then! |
@rricard yes please, it would go here: https://github.com/apollostack/apollo-client/blob/master/gql.js Is there any way to avoid printing the warning in production? |
mheh, I know that React and Redux remove warnings on prod but I don't think it's easy to do, they have a really different build system and I have to admin I'm not an expert with tsc |
I think it's up to the user's build system. Perhaps if we just do |
I was leaning towards that by looking at redux. But it should be noted that redux uses webpack's DefinePlugin for UMD builds ... |
I think those if statements are evaluated by the app using the package, at the minification step. Like, when you |
Hey, I published a fix as version 0.3.24. This kind of problem is exactly why we are moving it into a different package - I'd prefer not to have to deal with moving around folders when publishing the package, which is what we had to do to achieve the So hopefully @rricard you can add the deprecation warning for 0.3.x, and in 0.4.x we will get rid of it in favor of the new |
Like #186,
apollo-client#0.3.21
seems to not have the right module resolution ongql
.Can you publish a corrected version please ?
Also this is related to #188.
Thanks to @pschupp01 for indentifying the bug.
The text was updated successfully, but these errors were encountered: