Everything was working fine in my react app but today after pushing my latest code, I got the below-mentioned error while Github actions were running build to be pushed on ec2.
The error I am facing on running build:
Attempted import error: 'useInsertionEffect' is not exported from
'react' (imported as 'useInsertionEffect$1').
Any idea what can be the issue?
I am not facing this on my local machine. I am using react version 17.0.2
and @emotion/react 11.7.1