[moved to issue] CLI for webpack must be installed ?!?!?

Why do I get this error? It seems to HALT the web side which doesn’t get any further, the browser is never launched…

web | CLI for webpack must be installed.
web |   webpack-cli (https://github.com/webpack/webpack-cli)
web |
web | We will use "npm" to install the CLI via "npm install -D webpack-cli".
Do you want to install 'webpack-cli' (yes/no): Generating TypeScript definitions and GraphQL schemas...

Can you give some more context here?

What command are you running?

Do you have any custom webpack configuration?

Is this new behavior after upgrading to v3?

What changes were made recently?

Apologies - things have been going pretty badly with all of the issues with yarn and everything.

I have been trying to build a docker-compose.yml and have been running into conflicts between yarn 1.22 & 3.2 – I finally got the docker working but now the yarn rw dev is failing…

For now I’m using RW 2.2.4 - and considering moving up to RW 3.0

When executing yarn rw dev the result is as shown previously (using node v16.16.0)

I’ve executed yarn rw setup webpack but not extended it

– and when I install webpack-cli with -D the result is different

anon23:redwoodblog ajoslin$ yarn rw dev
/Users/ajoslin/Documents/Als/Development/EPC/Development/redwoodblog/node_modules/@graphql-yoga/common/node_modules/@whatwg-node/fetch/dist/create-node-ponyfill.js:163
      class Request extends OriginalRequest {
                            ^

TypeError: Class extends value undefined is not a constructor or null
    at createNodePonyfill (/Users/ajoslin/Documents/Als/Development/EPC/Development/redwoodblog/node_modules/@graphql-yoga/common/node_modules/@whatwg-node/fetch/dist/create-node-ponyfill.js:163:29)
    at Object.<anonymous> (/Users/ajoslin/Documents/Als/Development/EPC/Development/redwoodblog/node_modules/@graphql-yoga/common/node_modules/@whatwg-node/fetch/dist/node-ponyfill.js:3:19)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:816:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at Object.<anonymous> (/Users/ajoslin/Documents/Als/Development/EPC/Development/redwoodblog/node_modules/@graphql-yoga/common/cjs/server.js:10:47)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)

There are complaints of this problem going back 4yrs at least…

this is the closest to what I’m experiencing

stuck here now – back in the AM

➤ YN0000: Done with warnings in 1m 43s
anon23:banner-support ajoslin$ yarn rw dev
/Users/ajoslin/Documents/Als/Development/EPC/Development/banner-support/node_modules/@graphql-yoga/common/node_modules/@whatwg-node/fetch/dist/create-node-ponyfill.js:163
      class Request extends OriginalRequest {
                            ^

TypeError: Class extends value undefined is not a constructor or null
    at createNodePonyfill (/Users/ajoslin/Documents/Als/Development/EPC/Development/banner-support/node_modules/@graphql-yoga/common/node_modules/@whatwg-node/fetch/dist/create-node-ponyfill.js:163:29)
    at Object.<anonymous> (/Users/ajoslin/Documents/Als/Development/EPC/Development/banner-support/node_modules/@graphql-yoga/common/node_modules/@whatwg-node/fetch/dist/node-ponyfill.js:3:19)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:816:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at Object.<anonymous> (/Users/ajoslin/Documents/Als/Development/EPC/Development/banner-support/node_modules/@graphql-yoga/common/cjs/server.js:10:47)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)

this problem is being addressed here: [Bug?]: yarn create redwood-app fails on node 16.17.0 LTS · Issue #6338 · redwoodjs/redwood · GitHub

TLDR; drag all my code into a new 3.0 project