Closed garg3133 closed 9 months ago
Also, executing npm start
does not work on Node v18 and v20 and throws the below error:
> npm start
> frontend@0.1.0 start
> react-scripts start
node:internal/modules/cjs/loader:598
throw e;
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /Users/priyansh/Projects/TPC-website/frontend/node_modules/postcss-safe-p
arser/node_modules/postcss/package.json
at exportsNotFound (node:internal/modules/esm/resolve:303:10)
at packageExportsResolve (node:internal/modules/esm/resolve:650:9)
at resolveExports (node:internal/modules/cjs/loader:591:36)
at Module._findPath (node:internal/modules/cjs/loader:668:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/Users/priyansh/Projects/TPC-website/frontend/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17)
at Module._compile (node:internal/modules/cjs/loader:1376:14) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Almost all the issues reported here have been resolved in #74. Opened #78 to track the remaining few.
Describe the bug
A lot of dependencies in the frontend project are deprecated and one of the dependencies has a conflicting peer dependency issue.
To Reproduce
Steps to reproduce the behaviour:
cd frontend
npm i
Expected behaviour
The packages should be installed without any peer dependency resolution issues or deprecation warnings.
Logs
When doing
npm i
on a newly cloned project'sfrontend
directory:After updating
react-swipeable-views
package to latest version and then doingnpm i