[Error] Cannot find module 'react/jsx-runtime'
본문 바로가기
더 알아보기/에러

[Error] Cannot find module 'react/jsx-runtime'

by 은돌1113 2022. 4. 6.
 

Cannot find module 'react/jsx-runtime' · Issue #2119 · emotion-js/emotion

Current behavior: I've upgraded to v11, I received the following error when the run the test suite. ● Test suite failed to run Cannot find module 'react/jsx-runtime' from 'node_modu...

github.com


1. node_modules 삭제 후 yarn install 실패

2. node_modules 삭제, package-lock.json 삭제 후 yarn install 실패

3. react, react-dom 최신 버전으로 업그레이드 성공

yarn add react
+
yarn add react-dom

댓글