Script error when using Chrome for testing

This problem only happens on chrome/android phones while the program works very smooth in Safari.

I am currently making a tap and place program with reset. It worked fine with safari which I am able to tap anywhere on the screen to place my model again after a reset. However, it did not work in chrome that the program did not response when I click the screen again after a reset unless I am tapping the invisible ground area. After checking with the console, it showed script error like the image above but nothing more. I wonder what I can do to solve this problem.

The streamed console is provided as a convenience and is best suited for simple console logging. To debug in more detail, use the browser dev tools/console.