Hi folks
Let me say first that I am basically a noob with Angular.
Anyway I’ve been trying for weeks to get a minimal Unity app running inside Angular 14. It works great when I just use the index.html and javascript that was output by the webgl build.
Here’s the output from Chrome’s console log:
unitymap.loader.js:1 Assertion failed
printErr @ unitymap.loader.js:1
abort @ unitymap.framework.js:114
assert @ unitymap.framework.js:951
demangle @ unitymap.framework.js:2030
(anonymous) @ unitymap.framework.js:2060
demangleAll @ unitymap.framework.js:2058
ErrnoError @ unitymap.framework.js:6985
(anonymous) @ unitymap.framework.js:6992
ensureErrnoError @ unitymap.framework.js:6991
staticInit @ unitymap.framework.js:6996
(anonymous) @ unitymap.framework.js:15600
(anonymous) @ unitymap.loader.js:1
invoke @ zone-evergreen.js:372
onInvoke @ core.js:28591
invoke @ zone-evergreen.js:371
run @ zone-evergreen.js:134
(anonymous) @ zone-evergreen.js:1275
invokeTask @ zone-evergreen.js:406
onInvokeTask @ core.js:28578
invokeTask @ zone-evergreen.js:405
runTask @ zone-evergreen.js:178
drainMicroTaskQueue @ zone-evergreen.js:585
invokeTask @ zone-evergreen.js:491
invokeTask @ zone-evergreen.js:1661
globalCallback @ zone-evergreen.js:1692
globalZoneAwareCallback @ zone-evergreen.js:1725
load (async)
customScheduleGlobal @ zone-evergreen.js:1809
scheduleTask @ zone-evergreen.js:393
onScheduleTask @ zone-evergreen.js:283
scheduleTask @ zone-evergreen.js:386
scheduleTask @ zone-evergreen.js:221
scheduleEventTask @ zone-evergreen.js:247
(anonymous) @ zone-evergreen.js:1964
desc.set @ zone-evergreen.js:825
(anonymous) @ unitymap.loader.js:1
ZoneAwarePromise @ zone-evergreen.js:1429
x @ unitymap.loader.js:1
(anonymous) @ unitymap.loader.js:1
ZoneAwarePromise @ zone-evergreen.js:1429
createUnityInstance @ unitymap.loader.js:1
initializeUnityMap @ demo.component.ts:90
ngAfterViewInit @ demo.component.ts:42
callHook @ core.js:2573
callHooks @ core.js:2542
executeInitAndCheckHooks @ core.js:2493
refreshView @ core.js:9551
refreshComponent @ core.js:10651
refreshChildComponents @ core.js:9277
refreshView @ core.js:9530
renderComponentOrTemplate @ core.js:9594
tickRootContext @ core.js:10825
detectChangesInRootView @ core.js:10850
detectChanges @ core.js:22853
tick @ core.js:29572
_loadComponent @ core.js:29610
bootstrap @ core.js:29546
(anonymous) @ core.js:29245
_moduleDoBootstrap @ core.js:29245
(anonymous) @ core.js:29215
invoke @ zone-evergreen.js:372
onInvoke @ core.js:28591
invoke @ zone-evergreen.js:371
run @ zone-evergreen.js:134
(anonymous) @ zone-evergreen.js:1275
invokeTask @ zone-evergreen.js:406
onInvokeTask @ core.js:28578
invokeTask @ zone-evergreen.js:405
runTask @ zone-evergreen.js:178
drainMicroTaskQueue @ zone-evergreen.js:585
Promise.then (async)
nativeScheduleMicroTask @ zone-evergreen.js:561
scheduleMicroTask @ zone-evergreen.js:572
scheduleTask @ zone-evergreen.js:396
scheduleTask @ zone-evergreen.js:221
scheduleMicroTask @ zone-evergreen.js:241
scheduleResolveOrReject @ zone-evergreen.js:1265
then @ zone-evergreen.js:1461
bootstrapModule @ core.js:29240
zUnb @ main.ts:11
__webpack_require__ @ bootstrap:79
0 @ main.js:11
__webpack_require__ @ bootstrap:79
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.js:1
Show 59 more frames
Show less
unitymap.loader.js:1 ERROR Error: Uncaught (in promise): TypeError: stackSave is not a function
TypeError: stackSave is not a function
at withStackSave (unitymap.framework.js:2019:19)
at demangle (unitymap.framework.js:2031:14)
at unitymap.framework.js:2060:19
at String.replace (<anonymous>)
at demangleAll (unitymap.framework.js:2058:19)
at new ErrnoError (unitymap.framework.js:6985:26)
at unitymap.framework.js:6992:36
at Array.forEach (<anonymous>)
at Object.ensureErrnoError (unitymap.framework.js:6991:14)
at Object.staticInit (unitymap.framework.js:6996:12)
at unitymap.framework.js:15600:6
at unitymap.loader.js:1:20047
at _ZoneDelegate.invoke (zone-evergreen.js:372:1)
at Object.onInvoke (core.js:28591:1)
at _ZoneDelegate.invoke (zone-evergreen.js:371:1)
at Zone.run (zone-evergreen.js:134:1)
at zone-evergreen.js:1275:1
at _ZoneDelegate.invokeTask (zone-evergreen.js:406:1)
at Object.onInvokeTask (core.js:28578:1)
at _ZoneDelegate.invokeTask (zone-evergreen.js:405:1)
at Zone.runTask (zone-evergreen.js:178:1)
at drainMicroTaskQueue (zone-evergreen.js:585:1)
at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:491:1)
at invokeTask (zone-evergreen.js:1661:1)
at globalCallback (zone-evergreen.js:1692:1)
at HTMLScriptElement.globalZoneAwareCallback (zone-evergreen.js:1725:1)
at resolvePromise (zone-evergreen.js:1211:1)
at zone-evergreen.js:1282:1
at _ZoneDelegate.invokeTask (zone-evergreen.js:406:1)
at Object.onInvokeTask (core.js:28578:1)
at _ZoneDelegate.invokeTask (zone-evergreen.js:405:1)
at Zone.runTask (zone-evergreen.js:178:1)
at drainMicroTaskQueue (zone-evergreen.js:585:1)
at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:491:1)
at invokeTask (zone-evergreen.js:1661:1)
at globalCallback (zone-evergreen.js:1692:1)
at HTMLScriptElement.globalZoneAwareCallback (zone-evergreen.js:1725:1)
Thank you in advance for any help.