-
Notifications
You must be signed in to change notification settings - Fork 4k
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 2 breaks application #5740
Comments
Hi @abenettt, thanks for the info! According to the installation guide ➜ devto git:(master) npm install yarn -g
/Users/rhymes/.nvm/versions/node/v12.14.1/bin/yarnpkg -> /Users/rhymes/.nvm/versions/node/v12.14.1/lib/node_modules/yarn/bin/yarn.js
/Users/rhymes/.nvm/versions/node/v12.14.1/bin/yarn -> /Users/rhymes/.nvm/versions/node/v12.14.1/lib/node_modules/yarn/bin/yarn.js
+ yarn@1.21.1
added 1 package in 1.964s We might want to go over the documentation and the various parts where we mention Yarn and specify As Yarn 2 is largely incompatible with Yarn 1 and it seems to be generating issues with various packages I don't think we should rush into the upgrade anyway. Let's fix the version to Also, I'm quite sure the Rails webpack plugin we use it's not compatible with Yarn 2 so we couldn't upgrade anyway. Would you be interested in going over the various places we mention Yarn and make sure we're telling people to use Yarn 1? grepping results for yarn around the code➜ devto git:(master) rg yarn | rg -v "yarn.lock" Dockerfile:ENV PATH=/root/.yarn/bin:$PATH Dockerfile: yarn Dockerfile:RUN yarn install && yarn check --integrity README.md:- [Yarn](https://yarnpkg.com/): please refer to their README.md: [installation guide](https://yarnpkg.com/en/docs/install). docker-entrypoint.sh:echo "alias devto-setup='cd /usr/src/app/ && gem install bundler && bundle install --jobs 20 --retry 5 && yarn install && yarn check --integrity && bin/setup'" >> ~/.bashrc docker-entrypoint.sh: echo "> devto-setup : Does the gem/yarn dependency installation, along with database setup" package.json: "api-docs:serve": "yarn redoc-cli serve docs/api_v0.yml --options.pathInMiddlePanel --options.jsonSampleExpandLevel=all --options.menuToggle -t docs/api_template.hbs --watch" bin/update: system('bin/yarn') bin/setup: system('bin/yarn') bin/yarn: exec "yarnpkg", *ARGV bin/yarn: $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" docs/readme.md:yarn global add gitdocs docs/contributing.md:yarn global add gitdocs docs/contributing_api.md:yarn api-docs:serve config/environments/production.rb: config.webpacker.check_yarn_integrity = false config/environments/development.rb:def yarn_integrity_enabled? config/environments/development.rb: config.webpacker.check_yarn_integrity = yarn_integrity_enabled? docs/tests/preact-tests.md:yarn test docs/tests/code-coverage.md:yarn test docs/getting-started/committing.md:`yarn --force` or `npm install --no-cache`. For some reason, the post-install docs/getting-started/committing.md:script of husky does not run when the package is pulled from yarn or npm's docs/getting-started/start-app.md:`yarn install` before starting the app. docs/installation/mac.md:Please refer to their [installation guide](https://yarnpkg.com/en/docs/install). docs/installation/linux.md: guide](https://yarnpkg.com/en/docs/install#debian-stable) (recommended). docs/installation/linux.md: run `npm install -g yarn` to install Yarn. docs/installation/linux.md:issues while `yarn` is installing packages. If so, you'll need to [install docs/installation/windows.md:curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - docs/installation/windows.md:echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list docs/installation/windows.md:sudo apt-get update && sudo apt-get install yarn docs/installation/windows.md:Make sure that Yarn is installed with `yarn -v` docs/installation/docker.md:1. run `docker-compose run web yarn install` |
I can do that, sure. |
Technically Resolved with #5786 |
Describe the bug
Yarn 2 was released recently and the project appears to be incompatible with it.
I think we should either fix the version to yarn 1 (now legacy) or upgrade to yarn 2
To Reproduce
dev.to
repositoryyarn version
with yarn 2 oryarn install
with yarn 2Expected behavior
Yarn to work
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: