Pascal Chatterjee

Results 2 comments of Pascal Chatterjee

This happens when you `require('graphql-rest-wrapper')` but it's exported as an ES6 module, so you have to do: ``` const gqlRestWrapper = require("graphql-rest-wrapper").default ``` Then you can do ``` const wrapper...

You can fix this by adding `babel-polyfill`: InstallIng: ``` yarn add babel-polyfill ``` Requiring in your app's entrypoint, e.g. `src/index.js` ``` require("babel-polyfill") ```