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

BUG: yarn add fail if .lock file with TABs #8694

Open
JonatasAmaral opened this issue Sep 27, 2021 · 2 comments
Open

BUG: yarn add fail if .lock file with TABs #8694

JonatasAmaral opened this issue Sep 27, 2021 · 2 comments

Comments

@JonatasAmaral
Copy link

On create-react-app / etc, i've run a conversion of all files' indentation to tabs

Yarn add was failing in one project (while npm add was not), and the only way to use it was to delete the yarn.lock file. Didn't add much packages, so didn't spent time investigating.

Then this got happening on a new one.
I've figured out that the problem is it didn't expect to find a TAB indentation instead of space

@kamronbatman
Copy link

Is it necessary to change the indentation to tabs? Usually the file is generated and you leave it alone. The only time it should be modified (in my experience) manually is when you need to do specific package resolution or vuln fixes of nested dependencies.

@JonatasAmaral
Copy link
Author

No, it is not. I've done it automatically, then that bug showed up

But now i have to add .yarn files to a exclude config, on each new project. What is king of annoying.
Not to mention (avoiding polemics) that identations should be tabs anyway...

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

2 participants