Prerequisites
Ionic Framework Version
v7.x
Current Behavior
SSR not working after upgrading to angular 16, even in ionic starter app. After starting dev server and opening the app, the page loads until the server throws out of memory.
With a production build server throws "NotYetImplemented" error and returns only original index.html file without rendered page.
Expected Behavior
SSR should work with angular 16.
Steps to Reproduce
- Start SSR dev server (npm run dev:ssr)
- Visit app located on localhost:4200
- Loading continues until the server throws out of memory
OR
- Build app
- Run npm run serve:ssr
- Visit app with disabled javascript
Code Reproduction URL
https://github.com/WDrzewiecki/ionic-ssr
Ionic Info
Ionic:
Ionic CLI : 7.1.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 7.0.5
@angular-devkit/build-angular : 16.0.0
@angular-devkit/schematics : 16.0.0
@angular/cli : 16.0.0
@ionic/angular-toolkit : 9.0.0
Capacitor:
Capacitor CLI : 5.0.1
@capacitor/android : not installed
@capacitor/core : 5.0.1
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.4
native-run : 1.7.2
System:
NodeJS : v18.16.0 (/usr/local/bin/node)
npm : 9.5.1
OS : macOS Unknown
Additional Information
No response
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
SSR not working after upgrading to angular 16, even in ionic starter app. After starting dev server and opening the app, the page loads until the server throws out of memory.
With a production build server throws "NotYetImplemented" error and returns only original index.html file without rendered page.
Expected Behavior
SSR should work with angular 16.
Steps to Reproduce
OR
Code Reproduction URL
https://github.com/WDrzewiecki/ionic-ssr
Ionic Info
Ionic:
Ionic CLI : 7.1.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 7.0.5
@angular-devkit/build-angular : 16.0.0
@angular-devkit/schematics : 16.0.0
@angular/cli : 16.0.0
@ionic/angular-toolkit : 9.0.0
Capacitor:
Capacitor CLI : 5.0.1
@capacitor/android : not installed
@capacitor/core : 5.0.1
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.4
native-run : 1.7.2
System:
NodeJS : v18.16.0 (/usr/local/bin/node)
npm : 9.5.1
OS : macOS Unknown
Additional Information
No response