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

Cannot read property 'freezeResults' of null #630

Closed
le0l1 opened this issue May 27, 2019 · 2 comments
Closed

Cannot read property 'freezeResults' of null #630

le0l1 opened this issue May 27, 2019 · 2 comments
Labels

Comments

@le0l1
Copy link

le0l1 commented May 27, 2019

current version: ^3.0.0-beta.11
error message:
image

I found the reason is about apollo-cache-inmemory@1.6.0, the new version asks the cache config cannot be null
https://github.com/apollographql/apollo-client/blob/d9e93e31fa40da6d9ee55e99e8e1cb114dba6639/packages/apollo-cache-inmemory/src/inMemoryCache.ts#L133
image

and now I can only reinstall apollo-cache-inmemory@1.5.1 to lock the version

@piemekanika
Copy link

Had the same problem.

@rigwild
Copy link

rigwild commented Jun 20, 2019

Related to #631

Another workaround was given by @danrocha by editing the vue-apollo.js file:

import { InMemoryCache } from 'apollo-cache-inmemory';

const defaultOptions = {
  // ...
  // Override default cache
  cache: new InMemoryCache(),
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants