Sharon
Sharon
CDCloudflare Developers
Created by Sharon on 9/2/2024 in #pages-help
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:
ERROR Error: ASSERTION ERROR: Unable to retrieve hydration info from the TransferState. [Expected=> null != undefined <=Actual]
ERROR Error: ASSERTION ERROR: Unable to retrieve hydration info from the TransferState. [Expected=> null != undefined <=Actual]
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.
1 replies