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

'relay-compiler' is not recognized as an internal or external command, operable program or batch file. #4660

Open
jamesheazlewood opened this issue Mar 28, 2024 · 0 comments

Comments

@jamesheazlewood
Copy link

Using git bash (Windows), running the relay-compiler script configured in package.json scripts shows the error:

$ npm run relay-compiler

> package-name@1.2.3 relay-compiler
> relay-compiler

'relay-compiler' is not recognized as an internal or external command,
operable program or batch file.

Things I've tried:

  • Restarting terminal
  • Used a different terminal
  • Running npm install again
  • Running other scripts (eg npm run dev runs successfully)
  • Running validate from another script "relay-validate": "relay-compiler --validate", also shows this error
  • Checked config

relay.config.json:

{
  "src": "./src",
  "language": "typescript",
  "schema": "./src/schema.graphql",
  "exclude": ["**/node_modules/**", "**/__mocks__/**", "**/__generated__/**"],
  "eagerEsModules": true
}

Installed packages in dependencies:

"react-relay": "^15.0.0",
"relay-runtime": "^15.0.0",

Installed packages in devDependencies:

"@types/react-relay": "^14.1.5",
"@types/relay-runtime": "^14.1.13",
"babel-plugin-relay": "^15.0.0",
"relay-compiler": "^15.0.0",

I presume the cause is some configuration or environment, but I've never encountered this issue before so maybe it's a bug.

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