Experimental Docker Setup - Yarn Version in container 1.22.19

Hello,

I have a question regarding the Docker setup and the yarn version.

Is it normal that when I run yarn -v on a container (console or Redwood), I get version 1.22.19 and not 4.0.2?

I believe this might be causing issues when attempting to migrate the database.

When I execute: yarn rw prisma migrate dev

I encounter the following error, even though the file exists:

yarn run v1.22.19
$ node /Users/hovannes/workplace/rw-test-projects/test1/node_modules/@redwoodjs/web/dist/bins/redwood.js prisma migrate dev
node:internal/modules/cjs/loader:1147
  throw err;
  ^

Error: Cannot find module '/Users/hovannes/workplace/rw-test-projects/test1/node_modules/@redwoodjs/web/dist/bins/redwood.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.10.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I’m running the project with yarn build:test-project

Is there anything missing in my configuration?

Thanks

Hello @Hova25 I cannot speak for Docket as @dom and @Josh-Walker-GM have more experience with that setup. However I did have to do some corepack enabling and disabling to fully upgrade to yarn v4 as noted in Releases · redwoodjs/redwood · GitHub

Perhaps something similar is needed ?

I’m working on it right now!

Work is ongoing here, but more changes are needed than what I currently have in that PR