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

Wxt vite plugins are not working #1439

Closed
5 tasks done
wuchunfu opened this issue Feb 16, 2025 · 3 comments
Closed
5 tasks done

Wxt vite plugins are not working #1439

wuchunfu opened this issue Feb 16, 2025 · 3 comments
Labels
pending-triage Someone (usually a maintainer) needs to look into this to see if it's a bug

Comments

@wuchunfu
Copy link

Describe the bug

The wxt version I am using is 0.19.27, The Vite version is 6.1.0. When I configure Vite related plugins in wxt.config.ts, it doesn't take effect. Is it because I'm missing some configuration?

Image

Image

Reproduction

Steps to reproduce

No response

System Info

-

Used Package Manager

pnpm

Validations

@wuchunfu wuchunfu added the pending-triage Someone (usually a maintainer) needs to look into this to see if it's a bug label Feb 16, 2025
@aiktb
Copy link
Contributor

aiktb commented Feb 16, 2025

Duplicate #1015

Workaround in package.json:

  "pnpm": {
    "overrides": {
      "vite": "6.0.7"
    }
  }

@wuchunfu
Copy link
Author

Duplicate #1015

Workaround in package.json:

"pnpm": {
"overrides": {
"vite": "6.0.7"
}
}

Got it, thanks

@aklinker1
Copy link
Collaborator

So this is just a type error, right? Yeah, make sure you're only using a single version of Vite, like by adding an override or resolution, and that will fix the type error. This is a common issue with projects that use Vite as a subdependency.

@aklinker1 aklinker1 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-triage Someone (usually a maintainer) needs to look into this to see if it's a bug
Projects
None yet
Development

No branches or pull requests

3 participants