Converting SPA to SSR - Error after compiling because of IntersectionObserver is not defined ( @ng-web-apis/intersection-observer) #4621
-
Hi, I am currently using Taiga as my default UI library, and it works perfectly in a single-page application (SPA) setup. However, after converting my project to server-side rendering (SSR), I encountered an issue preventing me from starting the server. The error message "IntersectionObserver is not defined" seems to be related to the @ng-web-apis/intersection-observer package, even though this library is not listed in my package.json file. Thank you for you help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need to provide mocks: |
Beta Was this translation helpful? Give feedback.
You need to provide mocks:
https://taiga-ui.dev/ssr