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

Menubar: Identifier directly after number error with Vite #5653

Open
chreds opened this issue Apr 29, 2024 · 0 comments
Open

Menubar: Identifier directly after number error with Vite #5653

chreds opened this issue Apr 29, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@chreds
Copy link

chreds commented Apr 29, 2024

Describe the bug

I'm trying to set :breakpoint="600px" (or something less than default).

<Menubar :model="items" :breakpoint="600px">

and I'm getting the following error:

[vite] Internal server error: Error parsing JavaScript expression: Identifier directly after number. (1:4)

Looks to be related to the px after the number. Looks like Vite expects this to be an integer or something. Any ideas?

Reproducer

https://stackblitz.com/edit/primevue-create-vue-typescript-issue-template-uojklr?file=src%2FApp.vue

PrimeVue version

3.5.2

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

Add :breakpoint="600px" to a Menubar item.

Expected behavior

Should reduce the breakpoint to 600px, instead throws an error.

@chreds chreds added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 29, 2024
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

1 participant