MitchelSt / react-testing-starter

Part of the "React Testing Crash Course" taught by Mitchel from Techbase
https://www.youtube.com/watch?v=OVNjsIto9xM
MIT License
123 stars 242 forks source link

Error [ERR_PACKAGE_PATH_NOT_EXPORTED] #9

Open zivkovicj opened 1 year ago

zivkovicj commented 1 year ago

I tried to run yarn install && yarn dev, as demonstrated in the YouTube video.

Received this error after the install:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in {my filepath}/react-testing-starter/node_modules/postcss-safe-parser/node_modules/postcss/package.json

C-likethis123 commented 1 year ago

Hi, the following steps worked for me nvm install // make sure you're in the directory with the .nvmrc file nvm use yarn install && yarn dev

grillem commented 1 year ago

Had the same issue on node 18. I downgraded to node 16 and worked fine.