This was the error:
This was the piece of code generating the error:
I followed a similar topic asked a while back and it said that you need to install cannon from npm and type
window.CANNON = require('cannon'), however after I did this it said this:
After downloading and following the steps given it is giving me this error:
My tsconfig.json is:
Thank you for reading.