I was tryng to set my ionic app to be hosted with Heroku following a guide on youtube, in the tutorial the OP deleted his WWW project file and had a file called Procfile running npm build && npm start when the herokDeployment.sh is launched. But when i deleted my WWW and ran the npm build, my app doesnt work anymore…i have no errors when doing ionic serve, the error appears only on the browser when the app is launched with heroku or with ionic serve. I tried deleting the WWW folder again and running IONIC BUILD BROWSER, but it wont work, getting the same errors. Any ideas? here is the full stack of the error
Uncaught (in promise): InvalidCharacterError: String contains an invalid character DefaultDomRenderer2.prototype.setAttribute@http://localhost:8100/build/vendor.js:34902:13 DebugRenderer2.prototype.setAttribute@http://localhost:8100/build/vendor.js:14038:9 createElement@http://localhost:8100/build/vendor.js:9548:13 createViewNodes@http://localhost:8100/build/vendor.js:12528:44 callViewAction@http://localhost:8100/build/vendor.js:13011:13 execComponentViewsAction@http://localhost:8100/build/vendor.js:12920:13 createViewNodes@http://localhost:8100/build/vendor.js:12589:5 createRootView@http://localhost:8100/build/vendor.js:12457:5 callWithDebugContext@http://localhost:8100/build/vendor.js:13843:39 debugCreateRootView@http://localhost:8100/build/vendor.js:13160:12 ComponentFactory_.prototype.create@http://localhost:8100/build/vendor.js:10229:37 ComponentFactoryBoundToModule.prototype.create@http://localhost:8100/build/vendor.js:3690:16 NavControllerBase.prototype._viewInit@http://localhost:8100/build/vendor.js:44598:27 NavControllerBase.prototype._nextTrns/<@http://localhost:8100/build/vendor.js:44390:17 M</l</t.prototype.invoke@http://localhost:8100/build/polyfills.js:3:14354 onInvoke@http://localhost:8100/build/vendor.js:4247:24 M</l</t.prototype.invoke@http://localhost:8100/build/polyfills.js:3:14281 M</c</r.prototype.run@http://localhost:8100/build/polyfills.js:3:9504 f/<@http://localhost:8100/build/polyfills.js:3:19620 M</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15029 onInvokeTask@http://localhost:8100/build/vendor.js:4238:24 M</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:14942 M</c</r.prototype.runTask@http://localhost:8100/build/polyfills.js:3:10195 o@http://localhost:8100/build/polyfills.js:3:7267