strapi-sdk-javascript
strapi-sdk-javascript copied to clipboard
strapi-sdk-javascript cannot communicate with 3.0.0_beta.5 server
Informations
- Node.js version: v10.13.0
- npm version: 6.9.0
- Strapi version: client 3.0.0_alpha.27, server 3.0.0_beta.5
- Strapi-sdk-javascript version: 0.3.1
- Browser or Node.js: Chrome
What is the current behavior?
When some navigate to http://localhost:3000, the client node server display following error:
> @ dev C:\Users\n\code\strapi\deliveroo
> node server.js
> Ready on http://localhost:3000
[ event ] build page: /
[ wait ] compiling ...
TypeError: Cannot assign to read only property '__esModule' of object '#<Object>'
at C:\Users\n\code\strapi\deliveroo\node_modules\apollo-boost\lib\bundle.cjs.js:127:74
at Array.forEach (<anonymous>)
at Object.<anonymous> (C:\Users\n\code\strapi\deliveroo\node_modules\apollo-boost\lib\bundle.cjs.js:127:36)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\n\code\strapi\deliveroo\node_modules\next-apollo\dist\initApollo.js:12:20)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
[ event ] build page: /next/dist/pages/_error
[ wait ] compiling ...
[ error ] TypeError: Cannot assign to read only property '__esModule' of object '#<Object>'
at C:\Users\n\code\strapi\deliveroo\node_modules\apollo-boost\lib\bundle.cjs.js:127:74
at Array.forEach (<anonymous>)
at Object.<anonymous> (C:\Users\n\code\strapi\deliveroo\node_modules\apollo-boost\lib\bundle.cjs.js:127:36)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\n\code\strapi\deliveroo\node_modules\next-apollo\dist\initApollo.js:12:20)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
TypeError: Cannot assign to read only property '__esModule' of object '#<Object>'
at C:\Users\n\code\strapi\deliveroo\node_modules\apollo-boost\lib\bundle.cjs.js:127:74
at Array.forEach (<anonymous>)
at Object.<anonymous> (C:\Users\n\code\strapi\deliveroo\node_modules\apollo-boost\lib\bundle.cjs.js:127:36)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\n\code\strapi\deliveroo\node_modules\next-apollo\dist\initApollo.js:12:20)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
[ error ] TypeError: Cannot assign to read only property '__esModule' of object '#<Object>'
at C:\Users\n\code\strapi\deliveroo\node_modules\apollo-boost\lib\bundle.cjs.js:127:74
at Array.forEach (<anonymous>)
at Object.<anonymous> (C:\Users\n\code\strapi\deliveroo\node_modules\apollo-boost\lib\bundle.cjs.js:127:36)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\n\code\strapi\deliveroo\node_modules\next-apollo\dist\initApollo.js:12:20)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
TypeError: Cannot assign to read only property '__esModule' of object '#<Object>'
at C:\Users\n\code\strapi\deliveroo\node_modules\apollo-boost\lib\bundle.cjs.js:127:74
at Array.forEach (<anonymous>)
at Object.<anonymous> (C:\Users\n\code\strapi\deliveroo\node_modules\apollo-boost\lib\bundle.cjs.js:127:36)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\n\code\strapi\deliveroo\node_modules\next-apollo\dist\initApollo.js:12:20)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
Steps to reproduce the problem Follow https://blog.strapi.io/strapi-next-setup/ to build a deliveroo client and server using Strapi 3.0.0_alpha.x.
Follow migration guide, to rebuild the deliveroo server using strapi 3.0.0_beta.5. Connect deliveroo client to new deliveroo server.
What is the expected behavior? Somewhat working so the developer can debug.
Suggested solutions
Confirm
- [x] I'm sure that this issue hasn't already been referenced