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

ERROR TypeError: this.document.head.prepend is not a function in 18.0.0-rc.1 #16875

Closed
junan-trustarc opened this issue Nov 28, 2024 · 2 comments
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@junan-trustarc
Copy link

Describe the bug

for ng serve, I am getting below error after upgraded to 18.0.0-rc.1

one thing this project is using angular SSR.

ERROR TypeError: this.document.head.prepend is not a function
    at _UseStyle.use (C:\TrustArc\arc-ui\.angular\cache\18.2.12\arc-ui\vite\deps_ssr\chunk-7G5ZQONS.js:846:34)
    at _BaseStyle.load (C:\TrustArc\arc-ui\.angular\cache\18.2.12\arc-ui\vite\deps_ssr\chunk-7G5ZQONS.js:1093:42)
    at _Toast._loadThemeStyles (C:\TrustArc\arc-ui\.angular\cache\18.2.12\arc-ui\vite\deps_ssr\chunk-F55NIZH2.js:187:22)
    at _load (C:\TrustArc\arc-ui\.angular\cache\18.2.12\arc-ui\vite\deps_ssr\chunk-F55NIZH2.js:138:12)
    at eval (C:\TrustArc\arc-ui\.angular\cache\18.2.12\arc-ui\vite\deps_ssr\chunk-F55NIZH2.js:141:37)
    at eval (C:\TrustArc\arc-ui\.angular\cache\18.2.12\arc-ui\vite\deps_ssr\chunk-JVQNSWXU.js:593:11)
    at Array.map (<anonymous>)
    at Object.emit (C:\TrustArc\arc-ui\.angular\cache\18.2.12\arc-ui\vite\deps_ssr\chunk-JVQNSWXU.js:592:26)
    at Object.setTheme (C:\TrustArc\arc-ui\.angular\cache\18.2.12\arc-ui\vite\deps_ssr\chunk-7G5ZQONS.js:670:21)
    at _PrimeNG.onThemeChange (C:\TrustArc\arc-ui\.angular\cache\18.2.12\arc-ui\vite\deps_ssr\chunk-7G5ZQONS.js:1210:20)

Environment

"primeng": "^18.0.0-rc.1",
"@primeng/themes": "^18.0.0-rc.1",

happening in ng serve only.

Reproducer

No response

Angular version

18.2.x

PrimeNG version

18.0.0-rc.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.15.1

Browser(s)

chrome 131.0.6778.86 but all browsers are same

Steps to reproduce the behavior

No response

Expected behavior

No response

@junan-trustarc junan-trustarc added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 28, 2024
@mertsincan
Copy link
Member

Fixed for the next version. Thank you!

@mertsincan mertsincan added this to the 18.0.0-rc.2 milestone Nov 28, 2024
@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 28, 2024
@mertsincan mertsincan moved this to Done in PrimeNG Nov 28, 2024
@junan-trustarc
Copy link
Author

Fixed for the next version. Thank you!

@mertsincan thanks, do you know when rc.2 will be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
Status: Done
Development

No branches or pull requests

2 participants