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

graph cool demo error #2693

Closed
sorgnardt opened this issue Dec 23, 2018 · 3 comments
Closed

graph cool demo error #2693

sorgnardt opened this issue Dec 23, 2018 · 3 comments

Comments

@sorgnardt
Copy link

when launching the graphcool-demo, it get the following error

instanceOf.mjs:33 Uncaught ReferenceError: require is not defined
at Module.../../packages/ra-data-graphql/node_modules/graphql/jsutils/instanceOf.mjs (instanceOf.mjs:33)
at webpack_require (bootstrap:787)
at fn (bootstrap:150)
at Module.../../packages/ra-data-graphql/node_modules/graphql/type/definition.mjs (definition.mjs:1)
at webpack_require (bootstrap:787)
at fn (bootstrap:150)
at Module.../../packages/ra-data-graphql/node_modules/graphql/type/validate.mjs (validate.mjs:1)
at webpack_require (bootstrap:787)
at fn (bootstrap:150)
at Module.../../packages/ra-data-graphql/node_modules/graphql/graphql.mjs (graphql.mjs:1)
at webpack_require (bootstrap:787)
at fn (bootstrap:150)
at Module.../../packages/ra-data-graphql/node_modules/graphql/index.mjs (index.mjs:1)
at webpack_require (bootstrap:787)
at fn (bootstrap:150)
at Module.../../packages/ra-data-graphql/esm/introspection.js (introspection.js:1)
at webpack_require (bootstrap:787)
at fn (bootstrap:150)
at Module.../../packages/ra-data-graphql/esm/index.js (index.js:1)
at webpack_require (bootstrap:787)
at fn (bootstrap:150)
at Module.../../packages/ra-data-graphcool/esm/index.js (index.js:1)
at webpack_require (bootstrap:787)
at fn (bootstrap:150)
at Module../src/dataProvider.js (index.js:3)
at webpack_require (bootstrap:787)
at fn (bootstrap:150)
at Module../src/App.js (App.css?8166:45)
at webpack_require (bootstrap:787)
at fn (bootstrap:150)
at Module../src/index.js (index.css?b42f:45)
at webpack_require (bootstrap:787)
at fn (bootstrap:150)
at Object.0 (index.js:190)
at webpack_require (bootstrap:787)
at checkDeferredModules (bootstrap:45)
at Array.webpackJsonpCallback [as push] (bootstrap:32)
at main.chunk.js:1

@jabolina
Copy link

Same here:

Node: 9.10.0
npm: 5.6.0
yarn: 1.10.1

I cloned the repo, then followed the steps in graphcool-demo, I did, on the react-admin root folder:
make install

Then:
make run-graphcool-demo

The app starts running, shows the loading animation, then crashes with:

ReferenceError: require is not defined
Module.../../node_modules/graphql/jsutils/instanceOf.mjs
http://localhost:3000/static/js/1.chunk.js:49953:35

There is no error output in the terminal.

@JacquesBonet
Copy link
Contributor

The graphql dependency must be upgraded to release 14.x.x

@fzaninotto
Copy link
Member

We've removed the graphcool demo in #2821

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

No branches or pull requests

4 participants