Progressive Web App Build Console Error TypeError: Error is not a constructor

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

After a build, the page appears empty and the following error is in the console:

app.js:24356 Uncaught TypeError: Error is not a constructor at generateCallerInformation (app.js:24356) at parseMessage (app.js:24377) at logMessage (app.js:24404) at Object.loggerObj.trace (app.js:23486) at konySdkLogger.trace (app.js:20621) at kony.sdk.appendGlobalParams (app.js:18364) at Object.kony.license.invokeIST (konylicense.js:659) at Object.kony.license.captureKonyLicenseUsage (konylicense.js:440) at newFunction (konylicense.js:610) at $KI.setappevents (konyapi.js:263

There is nothing in visualizer warning me, and it appears to build properly. How do I find what is causing this?

I've cleaned my project, refreshed my project, restarted visualizer, restarted my computer, and updated visualizer so far

Setting the build mode into "Release" fixed this issue. However I am still unable to build in "Debug" mode. If anyone has any idea how to fix that it would be appreciated.