How to find the file causing Cypress Webpack Compilation Error “Unexpected character ‘�'”
I’ve migrated a react-scripts
web-app from React 17 to 18 over the last 3 weeks. Everything works, including the Cypress component tests, only the Cypress E2E tests won’t execute.
Error: Webpack Compilation Error Module parse failed: Unexpected character ‘�’ (1:0)
I am dealing with this error when trying to run a spec in Cypress but I am not able to find the root cause.