You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the NODE_PATH env var to add an additional node module directory. With regular react-scripts there's no problem but it crashes with rewired tests.
I set up a mini-project to show the issue. You can run npm run start or npm run start:rewired and it works fine, npm run test too but npm run start:rewired shows Cannot find module 'package.json'
I use the NODE_PATH env var to add an additional node module directory. With regular react-scripts there's no problem but it crashes with rewired tests.
I set up a mini-project to show the issue. You can run
npm run start
ornpm run start:rewired
and it works fine,npm run test
too butnpm run start:rewired
shows Cannot find module 'package.json'Here is the link to my repository : https://github.com/alex-pex/react-app-rewired-sample
The text was updated successfully, but these errors were encountered: