I’m following along in section 4: Building Images with the react-app
I did npm install and the packages got downloaded.
I run npm start and the app fails with the following info.
Did I miss something? Or is something out of date?
react-app@0.1.0 start
react-scripts start
node:internal/modules/cjs/loader:489
throw e;
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath ‘./lib/tokenize’ is not defined by “exports” in C:\dockerlearn\mosh\section4-react-app\node_modules\postcss-safe-parser\node_modules\postcss\package.json
at new NodeError (node:internal/errors:372:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:440:9)
at packageExportsResolve (node:internal/modules/esm/resolve:719:3)
at resolveExports (node:internal/modules/cjs/loader:483:36)
at Module._findPath (node:internal/modules/cjs/loader:523:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:925:27)
at Module._load (node:internal/modules/cjs/loader:780:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (C:\dockerlearn\mosh\section4-react-app\node_modules\postcss-safe-parser\lib\safe-parser.js:1:17) {
code: ‘ERR_PACKAGE_PATH_NOT_EXPORTED’
}
Node.js v18.0.0