Angular : Assertion Error
Hello,
I'm encountering an issue with an Angular application I've created and hosted on Cloudflare. This problem only occurs when the project is deployed on Cloudflare. Locally or on other hosting environments, there are no errors.
The error only occurs on one specific page when I refresh it or enter the URL directly. If I navigate to this page via a link (RouterLink), everything works fine.
The page consists of a *ngFor loop that displays a list of items. The list is initially empty and gets populated in the ngOnInit method.
I've noticed that the error also occurs if I use an *ngIf condition instead of *ngFor.
I disabled code compression during the build process to better understand the error, and this is what I get:
Repo GitHub:
https://github.com/kharoncode/bdp_saunas/tree/main/cloudflare/wtf-test
Link :
https://wtf-test.pages.dev/
I hope you can help me, thanks.
GitHub
bdp_saunas/cloudflare/wtf-test at main · kharoncode/bdp_saunas
Contribute to kharoncode/bdp_saunas development by creating an account on GitHub.
0 Replies