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

unplugin-auto-import no longer working #17132

Closed
Karnith opened this issue Apr 23, 2024 · 1 comment
Closed

unplugin-auto-import no longer working #17132

Karnith opened this issue Apr 23, 2024 · 1 comment
Labels
area/cli bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@Karnith
Copy link

Karnith commented Apr 23, 2024

What happened?

In previous version of quasar v2 unplugin-auto-import worked and provided imports via d.ts file. Now unplugin-auto-import does not work with quasar, it seems that environment variables get wiped when this plugin is added to vite plugins. Using server: false and client: false do not fix the issue either. When client: false is added, the plugin no longer creates and adds the d.ts file.

This happens in the latest version of quasar cli SPA app and the new beta vite app.

What did you expect to happen?

It is expected that the vite plugin unplugin-auto-import generates and adds the auto imports into a quasar project.

Reproduction URL

https://stackblitz.com/edit/quasarframework-5qaesd?file=README.md

How to reproduce?

  1. Create quasar vite app
  2. install unplugin-auto-import
  3. add unplugin-auto-import to vite plugins
  4. app is now broken as environment variables no longer are created

Flavour

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

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)

Platforms/Browsers

No response

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@Karnith Karnith added kind/bug 🐞 Qv2 🔝 Quasar v2 issues labels Apr 23, 2024
@github-actions github-actions bot added area/cli bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite labels Apr 23, 2024
@rstoenescu
Copy link
Member

Hi,

You are incorrectly configuring unplugin-auto-import.
Remove process: [['*', 'process']], from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli 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