cypress-realworld-app icon indicating copy to clipboard operation
cypress-realworld-app copied to clipboard

Migrate away from Yarn 1 (Classic) as package manager

Open MikeMcC399 opened this issue 2 years ago • 4 comments

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.

MikeMcC399 avatar Oct 30 '23 07:10 MikeMcC399

Welcome to any PRs to update this

jennifer-shehane avatar Jan 05 '24 15:01 jennifer-shehane

@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.

MikeMcC399 avatar Jan 06 '24 11:01 MikeMcC399

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.

MikeMcC399 avatar Feb 07 '24 08:02 MikeMcC399