You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, that breaks the tests, resulting in the following console errors:
apollo-client.amd.js:47Uncaught SyntaxError: Unexpected token import
index.js:1Uncaught ReferenceError: define is not defined
at index.js:1
app.js:1Uncaught ReferenceError: define is not defined
at app.js:1
query-and-unsubscribe-test.js:1Uncaught ReferenceError: define is not defined
at query-and-unsubscribe-test.js:1
tests?hidepassed:39 Uncaught ReferenceError: Ember is not defined
at tests?hidepassed:39
test-loader.js:21Uncaught ReferenceError: require is not defined
at HTMLDocument.<anonymous> (test-loader.js:21)
Uh oh!
There was an error while loading. Please reload this page.
I attempted to upgrade the addon's core dependencies here: https://github.com/bgentry/ember-apollo-client/compare/upgrade-apollo-client
Unfortunately, that breaks the tests, resulting in the following console errors:
To upgrade, I ran:
I was able to narrow it down to the fact that it breaks as soon as
apollo-client
is upgraded beyondv0.6.0
(tov0.7.x
or beyond).My assumption is that this is due to the Apollo Client changes to use UMD and ES6 modules, which were released literally the day after this addon was first published.
I don't have time to dig into this any further right now, but if anybody feels inclined to take a crack at it, be my guest 😃
The text was updated successfully, but these errors were encountered: