You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a react app using the create-react-app script in a package in my repo.
The package is a sub directory (i.e. there's no WORKSPACE file there).
I'm trying to make it work but I'm getting the following error when running with yarn start:
Failed to compile.
[eslint] Plugin "react" was conflicted between "package.json » eslint-config-react-app » /home/enzer/.cache/bazel/_bazel_enzer/055b3f42459170ac9ed7445962c97212/execroot/__main__/bazel-out/k8-fastbuild/bin/package/start.sh.runfiles/__main__/package/node_modules/eslint-config-react-app/base.js" and "BaseConfig » /home/enzer/.cache/bazel/_bazel_enzer/055b3f42459170ac9ed7445962c97212/execroot/__main__/bazel-out/k8-fastbuild/bin/package/start.sh.runfiles/__main__/node_modules/eslint-config-react-app/base.js".
ERROR in [eslint] Plugin "react" was conflicted between "package.json » eslint-config-react-app » /home/enzer/.cache/bazel/_bazel_enzer/055b3f42459170ac9ed7445962c97212/execroot/__main__/bazel-out/k8-fastbuild/bin/package/start.sh.runfiles/__main__/package/node_modules/eslint-config-react-app/base.js" and "BaseConfig » /home/enzer/.cache/bazel/_bazel_enzer/055b3f42459170ac9ed7445962c97212/execroot/__main__/bazel-out/k8-fastbuild/bin/package/start.sh.runfiles/__main__/node_modules/eslint-config-react-app/base.js".
webpack compiled with 1 error
No issues found.
If I delete the eslintConfig section from my package.json, it seems everything is working properly.
This issue has been automatically marked as stale because it has not had any activity for 6 months. It will be closed if no further activity occurs in 30 days. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs!
What happened?
I created a react app using the create-react-app script in a package in my repo.
The package is a sub directory (i.e. there's no WORKSPACE file there).
I'm trying to make it work but I'm getting the following error when running with yarn start:
If I delete the eslintConfig section from my package.json, it seems everything is working properly.
How can I make it work with the eslintConfig?
🔬 Minimal Reproduction
npx create-react-app package --template typescript
"--node_options=--require=./$(rootpath chdir.js)"
Version
Development (host) and target OS/architectures:
Linux or-workstation 5.10.0-20-cloud-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux
Output of
bazel --version
:bazel 6.0.0-pre.20221020.1
Version of rules_nodejs, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:5.8.0
Language(s) and/or frameworks involved:
react
How to reproduce
No response
Any other information?
No response
The text was updated successfully, but these errors were encountered: