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

SyntaxError: redeclaration of import QItemSection #15784

Closed
Tenrys opened this issue May 3, 2023 · 2 comments
Closed

SyntaxError: redeclaration of import QItemSection #15784

Tenrys opened this issue May 3, 2023 · 2 comments
Assignees
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@Tenrys
Copy link
Contributor

Tenrys commented May 3, 2023

What happened?

I am using autoImportComponentCase: 'combined' in my quasar.config.js, because my project uses both pascal and kebab case for Quasar elements.

My new component which uses pascal case seems to fail to load with this error:

image

Not sure how to fix it aside from switching everything to one case only for now.

It seems like having two identical Quasar components with different cases throughout the template makes it import twice.

What did you expect to happen?

I should be able to use components with interchangeable cases through my component without issue.

Reproduction URL

https://stackblitz.com/edit/quasarframework-baxkzs?file=src/pages/ExamplePage.vue

How to reproduce?

  1. Go to the provided reproduction link
  2. Look in your browser console for the error
  3. Check pages/ExamplePage.vue

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

Platforms/Browsers

Firefox

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@Tenrys Tenrys added kind/bug 🐞 Qv2 🔝 Quasar v2 issues labels May 3, 2023
@github-actions github-actions bot added area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite labels May 3, 2023
@rstoenescu rstoenescu self-assigned this May 8, 2023
rstoenescu added a commit that referenced this issue May 9, 2023
@rstoenescu
Copy link
Member

Thank you for reporting!
Fix will be available in next quasar/vite-plugin & q/app-vite.

@rstoenescu
Copy link
Member

Available in q/app-vite 1.4.1 and q/vite-plugin 1.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

2 participants