-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Tailwind Primevue not working with Nuxt Security module #6771
Comments
I've got the same issue. Spent two days figuring out the problem. Found the Problem by
|
Appears to be related to the |
@tugcekucukoglu Nuxt-Security team here As discovered by @lawren in nuxt-modules/security#564, the problem arises because you (or other 3rd-parties) are mutating the Typescript definitions of the nitro renderer: export interface NuxtRenderHTMLContext {
island?: boolean
htmlAttrs: string[]
head: string[]
bodyAttrs: string[]
bodyPrepend: string[]
body: string[]
bodyAppend: string[]
} As defined in Nuxt core here : https://github.com/nuxt/nuxt/blob/f68589c2cac4af6378fa3d33ea6716f07a387e86/packages/nuxt/src/core/runtime/nitro/renderer.ts#L47 We are scanning this object for security purposes, and we are relying on the However, we will be releasing a hotfix to help your users. Update: Fixed as of Nuxt-Security v2.1.4. PrimeVue users should upgrade. |
Describe the bug
Adding nuxt-security module to an existing nuxt-unstyled-tailwind example stops the website from loading and throws a 500 error:
The module does work with the nuxt-styled-tailwind example tho...
Reproducer
https://stackblitz.com/~/github.com/DaniZGit/primevue-test
PrimeVue version
4.1.1
Vue version
3.x
Language
ES6
Build / Runtime
Nuxt
Browser(s)
Chrome
Steps to reproduce the behavior
Expected behavior
Nuxt security module should load as expected.
The text was updated successfully, but these errors were encountered: