Apollo-client: Error InMemoryCache has only a getter

Created on 12 Sep 2018  路  4Comments  路  Source: apollographql/apollo-client

Bug appears since tag [email protected]

..\node_modules\apollo-boost\lib\index.js:35 Uncaught TypeError: Cannot set property InMemoryCache of #<Object> which has only a getter
    at Object.parcelRequire...\node_modules\apollo-boost\lib\index.js.apollo-client (..\node_modules\apollo-boost\lib\index.js:35)

>>> export { gql, InMemoryCache, HttpLink };  //browser point to this

Built with Parcel + Babel es2017

Most helpful comment

I'm seeing the same error. Version 0.1.14 is working fine. Upgrading to 0.1.15 generates the error above. You can recreate this by just importing ApolloBoost as shown in the file below.

import ApolloBoost from "apollo-boost"
// Enough to trigger the error in 0.1.15

All 4 comments

I'm seeing the same error. Version 0.1.14 is working fine. Upgrading to 0.1.15 generates the error above. You can recreate this by just importing ApolloBoost as shown in the file below.

import ApolloBoost from "apollo-boost"
// Enough to trigger the error in 0.1.15

The PR should fix this - is anyone going to take a look?

Is the fix published to registry already? 馃檹

Was this page helpful?
0 / 5 - 0 ratings