ionic-team / ionic-team/ionic-cli

Ionic component styles not loading with Angular SSR

Offen
#5,096 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
triage
Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
682
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Description:**
I'm using Angular 18 standalone application with Ionic 8 and enabled server side rendering. When I try to run SSR, the styles of ionic components are not loading. It just loads the plain html.

**Output:**
![image](https://github.com/user-attachments/assets/905c8246-f71b-4a19-8fee-97ad8d5498c4)

**My `ionic info`:**

```
Ionic:

Ionic CLI : 7.2.0 (C:\Users\ssendrayan\AppData\Roaming\nvm\v20.15.0\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 8.3.2
@angular-devkit/build-angular : 18.2.7
@angular-devkit/schematics : 18.2.7
@angular/cli : 18.2.7
@ionic/angular-toolkit : 12.1.1

Capacitor:

Capacitor CLI : 6.1.0
@capacitor/android : 6.1.2
@capacitor/core : 6.1.0
@capacitor/ios : 6.1.2

Utility:

cordova-res : not installed globally
native-run : not installed globally

System:

NodeJS : v20.15.0 (C:\Program Files\nodejs\node.exe)
npm : 10.7.0
OS : Windows 10
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.