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

inferschema:write #20

Open
lojul opened this issue Oct 4, 2021 · 0 comments
Open

inferschema:write #20

lojul opened this issue Oct 4, 2021 · 0 comments

Comments

@lojul
Copy link

lojul commented Oct 4, 2021

I'm following YouTUbe playlist part 2, after running inferschema:write, I'm not able to access GraphQL playground via http://localhost:4001/graphql with below error:

start
node scripts/start-dev.js

12:14:29 React |
12:14:29 React | > grand-stack-starter-web-react@0.0.1 start
12:14:29 React | > react-scripts start
12:14:29 React |
12:14:29 api |
12:14:29 api | > grand-stack-starter-api@0.0.1 start:dev
12:14:29 api | > ./node_modules/.bin/nodemon --watch src --ext js,graphql --exec babel-node src/index.js
12:14:29 api |
12:14:30 api | [nodemon] 1.19.4
12:14:30 api | [nodemon] to restart at any time, enter rs
12:14:30 api | [nodemon] watching dir(s): src/**/*
12:14:30 api | [nodemon] watching extensions: js,graphql
12:14:30 api | [nodemon] starting babel-node src/index.js
12:14:32 api | /Users/kincheonglau/Sites/pillow-grandstack/api/node_modules/graphql-compose/lib/TypeStorage.js:44
12:14:32 api | throw new Error(Type with name ${(0, _misc.inspect)(typeName)} does not exists);
12:14:32 api | ^
12:14:32 api |
12:14:32 api | Error: Type with name "Long" does not exists
12:14:32 api | at SchemaComposer.get (/Users/kincheonglau/Sites/pillow-grandstack/api/node_modules/graphql-compose/lib/TypeStorage.js:44:13)
12:14:32 api | at ThunkComposer._thunk (/Users/kincheonglau/Sites/pillow-grandstack/api/node_modules/graphql-compose/lib/TypeMapper.js:585:34)
12:14:32 api | at ThunkComposer.get ofType [as ofType] (/Users/kincheonglau/Sites/pillow-grandstack/api/node_modules/graphql-compose/lib/ThunkComposer.js:20:34)
12:14:32 api | at NonNullComposer.getUnwrappedTC (/Users/kincheonglau/Sites/pillow-grandstack/api/node_modules/graphql-compose/lib/NonNullComposer.js:38:15)
12:14:32 api | at unwrapTC (/Users/kincheonglau/Sites/pillow-grandstack/api/node_modules/graphql-compose/lib/utils/typeHelpers.js:208:31)
12:14:32 api | at unwrapOutputTC (/Users/kincheonglau/Sites/pillow-grandstack/api/node_modules/graphql-compose/lib/utils/typeHelpers.js:220:10)
12:14:32 api | at ObjectTypeComposer.getFieldTC (/Users/kincheonglau/Sites/pillow-grandstack/api/node_modules/graphql-compose/lib/ObjectTypeComposer.js:380:44)
12:14:32 api | at /Users/kincheonglau/Sites/pillow-grandstack/api/node_modules/graphql-compose/lib/ObjectTypeComposer.js:1460:23
12:14:32 api | at Array.forEach ()
12:14:32 api | at ObjectTypeComposer.getNestedTCs (/Users/kincheonglau/Sites/pillow-grandstack/api/node_modules/graphql-compose/lib/ObjectTypeComposer.js:1459:26)
12:14:32 api | [nodemon] app crashed - waiting for file changes before starting...
12:14:33 React | [HPM] Proxy created: / -> http://localhost:4001/graphql
12:14:33 React | ℹ 「wds」: Project is running at http://192.168.1.15/
12:14:33 React | ℹ 「wds」: webpack output is served from
12:14:33 React | ℹ 「wds」: Content not from webpack is served from /Users/kincheonglau/Sites/pillow-grandstack/web-react/public
12:14:33 React | ℹ 「wds」: 404s will fallback to /
12:14:33 React | Starting the development server...
12:14:33 React |
12:14:35 React | Browserslist: caniuse-lite is outdated. Please run:
12:14:35 React | npx browserslist@latest --update-db
12:14:35 React |
12:14:35 React | Why you should do it regularly:
12:14:35 React | https://github.com/browserslist/browserslist#browsers-data-updating
12:14:54 React | Compiled successfully!
12:14:54 React |
12:14:54 React | You can now view grand-stack-starter-web-react in the browser.
12:14:54 React |
12:14:54 React | Local: http://localhost:3000
12:14:54 React | On Your Network: http://192.168.1.15:3000
12:14:54 React |
12:14:54 React | Note that the development build is not optimized.
12:14:54 React | To create a production build, use npm run build.
12:14:54 React |
12:14:55 React | [HPM] Error occurred while trying to proxy request /graphql from localhost:3000 to http://localhost:4001/graphql (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
12:14:55 React | [HPM] Error occurred while trying to proxy request /graphql from localhost:3000 to http://localhost:4001/graphql (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
12:14:55 React | [HPM] Error occurred while trying to proxy request /graphql from localhost:3000 to http://localhost:4001/graphql (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)

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

1 participant