SSR for Ionic Angular App

TypeError [ERR_INVALID_URL]: Invalid URL: ./
at onParseError (internal/url.js:243:9)
at new URL (internal/url.js:319:5)
at bootstrapLazy (dist/app/server/main.js:162078:26)
at dist/app/server/main.js:164076:70
at ZoneDelegate…/node_modules/zone.js/dist/zone-node.js.ZoneDelegate.invoke (dist/app/server/main.js:408184:30)
at Object.onInvoke (dist/app/server/main.js:81583:33)
at ZoneDelegate…/node_modules/zone.js/dist/zone-node.js.ZoneDelegate.invoke (dist/app/server/main.js:408183:36)
at Zone…/node_modules/zone.js/dist/zone-node.js.Zone.run (dist/app/server/main.js:407941:47)
at dist/app/server/main.js:408689:38
at ZoneDelegate…/node_modules/zone.js/dist/zone-node.js.ZoneDelegate.invokeTask (dist/app/server/main.js:408219:35)

It is the same as https://github.com/ionic-team/stencil/issues/2408

Any workaround or pointer to fix this issue?

Can you please provide a minimal example? There’s not a lot that we can debug with from that