-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Bug: (react-native 0.74.1) error when installing the packages #122
Comments
Thanks for the report. As the issue template states, we don't investigate bug reports without a repro. Please update the description with a StackBlitz reproduction and we will take a look. |
looks like yarn does not support |
1. yarn v2+ does not support it. 2. yarn v1 can install without the flag. fixes #122
@rodrigodiasf1984 I was not able to repro using yarn v1. are you using yarn v2+? |
1. yarn v2+ does not support it. 2. yarn v1 can install without the flag. fixes #122
1. yarn v2+ does not support it. 2. yarn v1 can install without the flag. fixes #122
by default this is the of the new react-native 0.74.1 "packageManager": "[email protected]" |
thanks, it will be fixed by #123 |
here this is a repo in github to reproduce the error: https://github.com/rodrigodiasf1984/rn074Test.git just clone it, run yarn and npm init @eslint/config@latest follow the instruction at the terminal [email protected], @eslint/js, typescript-eslint, eslint-plugin-react $ yarn add [--json] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev] [-i,--interactive] [--cached] [--mode #0] ... |
* fix: do not use `--force` when choosing yarn 1. yarn v2+ does not support it. 2. yarn v1 can install without the flag. fixes #122 * refactor output()
Environment
Node version: 20.12.2
npm version: 10.5.2
Local ESLint version: ^9.2.0
Global ESLint version:
Operating System: macOS 14.4.1
What parser are you using?
@typescript-eslint/parser
What did you do?
╰─ npx eslint --init ─╯
You can also run this command directly using 'npm init @eslint/config@latest'.
✔ How would you like to use ESLint? · problems
✔ What type of modules does your project use? · esm
✔ Which framework does your project use? · react
✔ The React plugin doesn't officially support ESLint v9 yet. What would you like to do? · 8.x
✔ Does your project use TypeScript? · typescript
✔ Where does your code run? · No items were selected
The config that you've selected requires the following dependencies:
[email protected], @eslint/js, typescript-eslint, eslint-plugin-react
✔ Would you like to install them now? · No / Yes
✔ Which package manager do you want to use? · yarn
☕️Installing...
Unknown Syntax Error: Unsupported option name ("--force").
$ yarn add [--json] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev] [-i,--interactive] [--cached] [--mode #0] ...
A config file was generated, but the config file itself may not follow your linting rules.
What did you expect to happen?
install the packges without errors
What actually happened?
i've got this error:
☕️Installing...
Unknown Syntax Error: Unsupported option name ("--force").
Link to Minimal Reproducible Example
https://eslint.org/play/
Participation
Additional comments
i not sure, but i think the problem is the version of the yarn at the new projects of react-native
by default this is the "packageManager": "[email protected]"
The text was updated successfully, but these errors were encountered: