Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grids throw error when setting column widths in percentages in SSR app #15156

Open
skrustev opened this issue Dec 9, 2024 · 0 comments
Open

Comments

@skrustev
Copy link
Member

skrustev commented Dec 9, 2024

Description

Error is thrown and the app terminated when setting width of a column to percentages.

  • igniteui-angular version: 19.0.x
  • browser: any

Steps to reproduce

  1. Open the Finance Grid app from https://github.com/IgniteUI/grid-demos
  2. Set width to percentage for the first column
  3. Run the app and open it in the browser

Result

The following error is thrown:

ReferenceError: requestAnimationFrame is not defined
    at Object.requestAnimationFrame (C:\Git\grid-demos\projects\FinanceGrid\.angular\cache\19.0.2\app-finance\vite\deps_ssr\chunk-T4XHMJL2.js:1141:105)
    at AnimationFrameAction2.AnimationFrameAction2.requestAsyncId (C:\Git\grid-demos\projects\FinanceGrid\.angular\cache\19.0.2\app-finance\vite\deps_ssr\chunk-T4XHMJL2.js:2411:112)
    at AnimationFrameAction2.AsyncAction2.schedule (C:\Git\grid-demos\projects\FinanceGrid\.angular\cache\19.0.2\app-finance\vite\deps_ssr\chunk-T4XHMJL2.js:1823:72)
    at AnimationFrameScheduler2.Scheduler2.schedule (C:\Git\grid-demos\projects\FinanceGrid\.angular\cache\19.0.2\app-finance\vite\deps_ssr\chunk-T4XHMJL2.js:2076:57)
    at Observable2.eval (C:\Git\grid-demos\projects\FinanceGrid\.angular\cache\19.0.2\app-finance\vite\deps_ssr\chunk-T4XHMJL2.js:4965:26)
    at Observable2.Observable2._trySubscribe (C:\Git\grid-demos\projects\FinanceGrid\.angular\cache\19.0.2\app-finance\vite\deps_ssr\chunk-T4XHMJL2.js:756:23)
    at eval (C:\Git\grid-demos\projects\FinanceGrid\.angular\cache\19.0.2\app-finance\vite\deps_ssr\chunk-T4XHMJL2.js:750:119)
    at Object.errorContext (C:\Git\grid-demos\projects\FinanceGrid\.angular\cache\19.0.2\app-finance\vite\deps_ssr\chunk-T4XHMJL2.js:437:9)
    at Observable2.Observable2.subscribe (C:\Git\grid-demos\projects\FinanceGrid\.angular\cache\19.0.2\app-finance\vite\deps_ssr\chunk-T4XHMJL2.js:748:24)
    at startThrottle (C:\Git\grid-demos\projects\FinanceGrid\.angular\cache\19.0.2\app-finance\vite\deps_ssr\chunk-T4XHMJL2.js:8602:77)

Expected result

There should be no errors.

Attachments

Attach a sample if available, and screenshots, if applicable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant