Including react-hot-loader to create-react-app without ejecting - Followed this guide to implement
After running npm test (which runs the default test of create-react-app) getting the below
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
This github issue page - talks about - "The issue is not actually caused by react-app-rewired, but due to a problem with the mismatch in versions between jest-cli and babel-jest." - But I understand if using CRA, I can not update Jest manually.
Have also gone throught this stackOverflow question question and did npm install jest@latest --save-dev - But that didn't help.
Description
Including react-hot-loader to create-react-app without ejecting - Followed this guide to implement
After running
npm test
(which runs the default test of create-react-app) getting the belowThis github issue page - talks about - "The issue is not actually caused by react-app-rewired, but due to a problem with the mismatch in versions between jest-cli and babel-jest." - But I understand if using CRA, I can not update Jest manually.
Have also gone throught this stackOverflow question question and did
npm install jest@latest --save-dev
- But that didn't help.What you are reporting:
bug
Environment
After running
npm ls jest-environment-node
my package.json
Run these commands in the project folder and fill in their results:
node -v
: v10.1.0npm -v
: 5.6.0Then, specify:
Reproducible Demo
https://codesandbox.io/s/qq9w7709xq