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

Can't start issue-tracker from fresh install #142

Open
MattWilliamsDev opened this issue Apr 14, 2020 · 11 comments
Open

Can't start issue-tracker from fresh install #142

MattWilliamsDev opened this issue Apr 14, 2020 · 11 comments

Comments

@MattWilliamsDev
Copy link

I followed the provided install instructions for issue-tracker but still get the following errors when running yarn start.

➜  issue-tracker (master) yarn start                                                                                                                                             ✭
yarn run v1.16.0
$ yarn run relay; concurrently --kill-others --names "react-scripts,relay" "react-scripts start" "yarn run relay --watch"
$ yarn run relay-compiler --schema schema/schema.graphql --src ./src/ $@
$ /Users/mattwilliams/dev/relay-examples/issue-tracker/node_modules/.bin/relay-compiler --schema schema/schema.graphql --src ./src/

Writing js
ERROR:
Encountered 4 errors:
- Unknown type "[IssueState!]" referenced in the argument definitions.
  
  Issues.js:6:11
  5 |           count: { type: "Int", defaultValue: 10 }
  6 |           states: { type: "[IssueState!]", defaultValue: ["OPEN"] }
    |           ^
  7 |         )
- Unknown type: 'ReopenIssueInput!'.
  
  IssueActions.js:2:52
  1 |
  2 |   mutation IssueActionsReopenIssueMutation($input: ReopenIssueInput!) {
    |                                                    ^
  3 |     reopenIssue(input: $input) {
- Unknown type: 'CloseIssueInput!'.
  
  IssueActions.js:2:51
  1 |
  2 |   mutation IssueActionsCloseIssueMutation($input: CloseIssueInput!) {
    |                                                   ^
  3 |     closeIssue(input: $input) {
- Unknown type: 'AddCommentInput!'.
  
  IssueActions.js:2:51
  1 |
  2 |   mutation IssueActionsAddCommentMutation($input: AddCommentInput!) {
    |                                                   ^
  3 |     addComment(input: $input) {
error Command failed with exit code 100.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 100.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
$ yarn run relay-compiler --schema schema/schema.graphql --src ./src/ $@ --watch
$ /Users/mattwilliams/dev/relay-examples/issue-tracker/node_modules/.bin/relay-compiler --schema schema/schema.graphql --src ./src/ --watch
[relay] Watchman is required to watch for changes. Running with watch mode disabled.
[relay] 
[relay] Writing js
[relay] ERROR:
[relay] Encountered 4 errors:
[relay] - Unknown type "[IssueState!]" referenced in the argument definitions.
[relay]   
[relay]   Issues.js:6:11
[relay]   5 |           count: { type: "Int", defaultValue: 10 }
[relay]   6 |           states: { type: "[IssueState!]", defaultValue: ["OPEN"] }
[relay]     |           ^
[relay]   7 |         )
[relay] - Unknown type: 'ReopenIssueInput!'.
[relay]   
[relay]   IssueActions.js:2:52
[relay]   1 |
[relay]   2 |   mutation IssueActionsReopenIssueMutation($input: ReopenIssueInput!) {
[relay]     |                                                    ^
[relay]   3 |     reopenIssue(input: $input) {
[relay] - Unknown type: 'CloseIssueInput!'.
[relay]   
[relay]   IssueActions.js:2:51
[relay]   1 |
[relay]   2 |   mutation IssueActionsCloseIssueMutation($input: CloseIssueInput!) {
[relay]     |                                                   ^
[relay]   3 |     closeIssue(input: $input) {
[relay] - Unknown type: 'AddCommentInput!'.
[relay]   
[relay]   IssueActions.js:2:51
[relay]   1 |
[relay]   2 |   mutation IssueActionsAddCommentMutation($input: AddCommentInput!) {
[relay]     |                                                   ^
[relay]   3 |     addComment(input: $input) {
error Command failed with exit code 100.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 100.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[relay] yarn run relay --watch exited with code 100
--> Sending SIGTERM to other processes..
[react-scripts] react-scripts start exited with code SIGTERM
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Is anyone having similar issues? Is there a recommended fix for this?

@sibelius
Copy link
Contributor

try this

cd issue-tracker
yarn
yarn relay
yarn start

@namkai
Copy link

namkai commented Apr 15, 2020

Also ran into an issue running from fresh install.
Followed your suggested steps @sibelius
Terminal response after running yarn start:

[relay] 
[relay] Writing js
[relay] Unchanged: 12 files
[relay] yarn run relay --watch exited with code 0
--> Sending SIGTERM to other processes..
[react-scripts] Starting the development server...
[react-scripts] 
[react-scripts] react-scripts start exited with code SIGTERM

@namkai
Copy link

namkai commented Apr 15, 2020

Have tried this on both Linux and Mac and hitting the same issue.

@sibelius
Copy link
Contributor

Are you using node lts? Node 12?

Do you have watchman installed?

@sibelius
Copy link
Contributor

try to remove --watch

@MattWilliamsDev
Copy link
Author

Are you using node lts? Node 12?

Do you have watchman installed?

I am running on v11.13.0 currently. Will upgrade and post results.

@MattWilliamsDev
Copy link
Author

MattWilliamsDev commented Apr 15, 2020

The upgrade to v13.13.0 did not help. Additionally, I do not have watchman installed so it is running with watch mode disabled.

Upgrading TS to 3.8.3 did not help either

@sibelius
Copy link
Contributor

odd versions are not stable, try version v10 or v12

@MattWilliamsDev
Copy link
Author

Same issue with v12.16.2 (LTS)

@leonardodino
Copy link

the issue here is that start script requires both process to be long-running. (because it's using concurrently --kill-others)

you can mitigate that by running each process in a separate terminal tab:

  1. yarn react-scripts start
  2. yarn relay --watch false --watchman false

OR install watchman, and get a better dev experience 😄

@jetro4u
Copy link

jetro4u commented Aug 7, 2021

In my case I remove the concurrently --kill-others part and just use "start": "yarn run relay && react-scripts start", and run yarn start and it works

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

5 participants