Error on upgrading from Redwood 7.4 TO 8.4

Error on Upgrade

After upgrading from version 7.4 to version 8.4.0, I am experiencing the following error

I have tried refactoring the code and reinstalling node modules again and again but no lock.

Have anyone experienced something similar?

This is a shot in the dark, but I recently had problems with the .redwood folder and removing it and recreating it helped.