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

yarn res commands error #15

Open
JiaeK opened this issue Nov 13, 2022 · 3 comments
Open

yarn res commands error #15

JiaeK opened this issue Nov 13, 2022 · 3 comments

Comments

@JiaeK
Copy link

JiaeK commented Nov 13, 2022

Hi, thanks for the great repo!
I've had also some yarn res commands errors like the issue #14. Fyi, I'm using WSL2.

$ yarn res init
Usage Error: Value of --module must be "commonjs", "es6", or "es6-global" $ yarn res init [--json] [--module #0] [--with-react] [--with-gentype] [--with-external-std]

$ yarn res init --with-react
Usage Error: Value of --module must be "commonjs", "es6", or "es6-global" $ yarn res init [--json] [--module #0] [--with-react] [--with-gentype] [--with-external-std]

These two commands gave me the above error messages. So then I tried $ yarn res init --module=es6 and it worked but after that somehow I got over 4300 file changes inside of my repo :0

+++
After $ yarn res init --module=es6 command, I re-tried $ yarn res init --with-react but it didn't work again. So I gave $ yarn res init --module=es6 --with-react a go, and that worked.

@XiNiHa
Copy link
Contributor

XiNiHa commented Nov 13, 2022

That 4300 file changes are because of the way how Yarn manages the package cache. You should add them into the gitignore if you are not going to use the Zero-Install feature, or you may just commit them as-is. :D I'd recommend you to read the docs about gitignore in Yarn Berry and Zero-Installs

@JiaeK
Copy link
Author

JiaeK commented Nov 14, 2022

Thanks for the tip, @XiNiHa! I wasn't sure which would be necessary or not among those +4300 changes so I'm just trying to commit `em all (pika pika) :D but yeah it's taking time.
I understand the necessity depends on the individual needs and I'm already in the process of committing but just out of curiosity, can you tell me which one(s) would be the most important one that everyone shouldn't eliminate?

@XiNiHa
Copy link
Contributor

XiNiHa commented Nov 14, 2022

Actually that changes are all Yarn dependencies, so if you remove the dependencies you don't need, they will also be removed.

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