Closed nathanhannig closed 1 year ago
When upgrading to React 18, I have faced this error during React Testing Library/Jest tests.
I just wanted to mention the fix incase others face the similar issue. I am not sure if this is due to use of yarn.
The fix is to remove your /node_modules, remove yarn.lock, and then install your dependencies again with yarn install.
/node_modules
yarn.lock
yarn install
When upgrading to React 18, I have faced this error during React Testing Library/Jest tests.
I just wanted to mention the fix incase others face the similar issue. I am not sure if this is due to use of yarn.
The fix is to remove your
/node_modules
, removeyarn.lock
, and then install your dependencies again withyarn install
.