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

BaseComponent: Browser DevTools Console displays a warning when using Primevue v4 components with Nuxt #5889

Closed
luke-z opened this issue Jun 14, 2024 · 3 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@luke-z
Copy link

luke-z commented Jun 14, 2024

Describe the bug

When refreshing a page I get the following warning:
[nuxt] Could not access `pt`. The only available runtime config keys on the client side are `public` and `app`

When following the stacktrace, I end up around here:

const _useptInConfig = this.$config?.pt?.['_usept'];

We are using Nuxt 3.12.1

Reproducer

https://stackblitz.com/edit/nuxt-starter-dr71ht

PrimeVue version

4.0.0-rc.1

Vue version

3.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

Brave

Steps to reproduce the behavior

  1. Open the website
  2. Open the browser dev tools console
  3. Refresh the page

Expected behavior

No warnings

@luke-z luke-z added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 14, 2024
@borsTiHD
Copy link

@Tarabass
Copy link

I think these issues are the same:

* [[nuxt] Could not access pt. The only available runtime config keys on the client side are public and app #5895](https://github.com/primefaces/primevue/issues/5895)

* Primvue Nuxt Module: [[nuxt] Could not access `pt`. The only available runtime config keys on the client side are `public` and `app` primevue-nuxt-module#69](https://github.com/primefaces/primevue-nuxt-module/issues/69)

Yes, they are. Except that this issue is on v4rc and the other is on v3.52 :)

@mertsincan
Copy link
Member

Please see; #5895 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

4 participants