Bug found on Quick Start Page

Found a bug last night on the Quick Start page specifically when you want to Create a Redwood project with yarn create redwood-app my-redwood-project --typescript. The yarn version is 1.22.19 not the latest yarn version and it throws off the initial experience with Redwood. Just a heads up! Thanks!

Thanks for letting us know.

What error message did you get exactly?

@Tobbe so after setting up locally and trying run dbAuth you’ll notice a yarn version error message.

yarn run v1.22.19
rw setup auth dbAuth

Set up auth for dbAuth

Options:
      --help      Show help                                            [boolean]
      --version   Show version number                                  [boolean]
      --cwd       Working directory to use (where `redwood.toml` is located)
  -f, --force     Overwrite existing auth configuration
                                                      [boolean] [default: false]
  -v, --verbose   Log setup output                    [boolean] [default: false]
  -w, --webauthn  Include WebAuthn support (TouchID/FaceID)
                                                       [boolean] [default: null]

Also see the Redwood CLI Reference

Error: Command failed with exit code 1: yarn npm info @redwoodjs/auth-dbauth-setup --fields versions --json
error Command "npm" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    at makeError (/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/node_modules/execa/index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getAuthHandler (/node_modules/@redwoodjs/cli/dist/commands/setup/auth/auth.js:107:9)
    at async Object.handler (/node_modules/@redwoodjs/cli/dist/commands/setup/auth/auth.js:53:21) {
  shortMessage: 'Command failed with exit code 1: yarn npm info @redwoodjs/auth-dbauth-setup --fields versions --json',
  command: 'yarn npm info @redwoodjs/auth-dbauth-setup --fields versions --json',
  escapedCommand: 'yarn npm info "@redwoodjs/auth-dbauth-setup" --fields versions --json',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: 'info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.',
  stderr: 'error Command "npm" not found.',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I also ran yarn rw info as well:

  System:
    OS: macOS 12.6
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.15.0 - /var/folders/__/qt75nhp9689813_3j5bjb0t40000gn/T/yarn--1684898288353-0.04903613870848833/node
    Yarn: 1.22.19 - /var/folders/__/qt75nhp9689813_3j5bjb0t40000gn/T/yarn--1684898288353-0.04903613870848833/yarn
  Databases:
    SQLite: 3.37.0 - /usr/bin/sqlite3
  Browsers:
    Chrome: 113.0.5672.126
    Firefox: 111.0
    Safari: 16.2
  npmPackages:
    @redwoodjs/core: 5.2.2 => 5.2.2

@Tobbe this only happened when I used yarn create redwood-app my-redwood-project --typescript.

Thanks.

Having your global yarn version be 1.x should be fine. But you should definitely have v3.x inside a RW project

image

image

That’s what it’s supposed to look like.

Did you get any error messages during initial setup?

Apologizes @Tobbe I think I miswrote this ticket so I get a dbAuth error only after setting up and using yarn create redwood-app my-redwood-project --typescript