cypress-realworld-app
cypress-realworld-app copied to clipboard
Migrate away from Yarn 1 (Classic) as package manager
Feature
Migrate away from Yarn Classic v1 as package manager. This could be to Yarn Modern v4, to npm or to pnpm.
Reason
Yarn 1 (Classic) is stated to be frozen. The Yarn 1 GitHub repo contains the "About" text:
The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry"
The cypress-io/cypress-realworld-app should be based on current and supported technologies in order to provide a useful example of Cypress in practice.
Welcome to any PRs to update this
@jennifer-shehane
Related issues that @astone123 raised are:
- #1418
- #1419
- #1420
See also
- https://github.com/cypress-io/cypress-realworld-app/issues/1508
It may be difficult to migrate before these issues are addressed.
npm
Attempting to migrate from Yarn Classic to npm hits multiple fatal dependency issues running npm install.
Yarn Modern
After migrating from Yarn Classic to Yarn Modern (4.1.0) executing yarn dev crashes with
[start:api:watch] Error: Cannot find module '../src/aws-exports' [start:api:watch] [nodemon] app crashed - waiting for file changes before starting...
Edit: Is not currently crashing with Yarn 4.4.0. Possibly due to PR https://github.com/cypress-io/cypress-realworld-app/pull/1513.