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

react-scripts says There was an error trying to load the config "relay" #120

Open
adwd opened this issue Nov 8, 2019 · 3 comments
Open

Comments

@adwd
Copy link

adwd commented Nov 8, 2019

I cloned this repository and just run issue-tracker app, then I got error message:

[react-scripts] There was an error trying to load the config "relay" for the macro imported from "babel-plugin-relay/macro. Please see the error thrown for more information.

App runs normally even with this message, so I think this is not big problem.

Whole log is below

❯ yarn -v
Now using node v12.13.0 (npm v6.12.0)
1.19.1

❯ yarn start
yarn run v1.19.1
$ 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/adwd/ghq/github.com/relayjs/relay-examples/issue-tracker/node_modules/.bin/relay-compiler --schema schema/schema.graphql --src ./src/
HINT: pass --watch to keep watching for changes.

Writing js
Updated:
 - Issues_repository.graphql.js
 - IssueDetailComments_issue.graphql.js
 - IssueActions_issue.graphql.js
 - IssuesListItem_issue.graphql.js
Unchanged: 8 files
$ yarn run relay-compiler --schema schema/schema.graphql --src ./src/ $@ --watch
$ /Users/adwd/ghq/github.com/relayjs/relay-examples/issue-tracker/node_modules/.bin/relay-compiler --schema schema/schema.graphql --src ./src/ --watch
[relay]
[relay] Writing js
[relay] Unchanged: 12 files
[relay] Watching for changes to js/jsx...
[relay] Watching for changes to graphql...
[react-scripts] Starting the development server...
[react-scripts]
[react-scripts] There was an error trying to load the config "relay" for the macro imported from "babel-plugin-relay/macro. Please see the error thrown for more information.
[react-scripts] There was an error trying to load the config "relay" for the macro imported from "babel-plugin-relay/macro. Please see the error thrown for more information.
[react-scripts] There was an error trying to load the config "relay" for the macro imported from "babel-plugin-relay/macro. Please see the error thrown for more information.
[react-scripts] There was an error trying to load the config "relay" for the macro imported from "babel-plugin-relay/macro. Please see the error thrown for more information.
[react-scripts] There was an error trying to load the config "relay" for the macro imported from "babel-plugin-relay/macro. Please see the error thrown for more information.
[react-scripts] There was an error trying to load the config "relay" for the macro imported from "babel-plugin-relay/macro. Please see the error thrown for more information.
[react-scripts] There was an error trying to load the config "relay" for the macro imported from "babel-plugin-relay/macro. Please see the error thrown for more information.
[react-scripts] Compiled successfully!
[react-scripts]
[react-scripts] You can now view issue-tracker in the browser.
[react-scripts]
[react-scripts]   Local:            http://localhost:3000/
[react-scripts]   On Your Network:  http://192.168.10.5:3000/
[react-scripts]
[react-scripts] Note that the development build is not optimized.
[react-scripts] To create a production build, use yarn build.
[react-scripts]
@haflinger
Copy link

Same issue here.

@sandeepone
Copy link

Its from babel macros, you can ignore or add a file .babel-plugin-macrosrc.yml with

relay: ~

with its contents in project directory.

@haflinger
Copy link

Thanks ! 👍

thibaultboursier added a commit to thibaultboursier/nextjs-with-relay-modern that referenced this issue Dec 1, 2019
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

3 participants