Getting Error while angular universal server running
See original GitHub issueBug Report
What is the expected behavior?
should be renders serverside properly.
What is the current behavior?
when i navigate to port 4000,it returns like this.
Node Express server listening on http://localhost:4000 Warning: Flex Layout loaded on the server without FlexLayoutServerModule /home/ss2/app/dist/server.js:344 throw error; ^
ReferenceError: requestAnimationFrame is not defined at AnimationFrameAction.requestAsyncId (/home/ss2/app/dist/server.js:30505:40) at AnimationFrameAction.AsyncAction.schedule (/home/ss2/app/dist/server.js:29678:35)
What modules are related to this issue?
- In Angular app ,have used Material,no furher animation Modules.
- [ ] express-engine
Issue Analytics
- State:
- Created 4 years ago
- Comments:9
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sreeragnair @munkhbayar17
requestAnimationFrame
is defined in the browser, not in node where your server side application runs. Add the following code in yourserver.ts
to define it pluscancelAnimationFrame
:I hope this will help!
Thanks, It works for me.