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

Vite 6: TypeError: vite:css-analysis plugin transform is not a function #13

Closed
2 tasks
aeharding opened this issue Nov 23, 2024 · 3 comments · Fixed by #15
Closed
2 tasks

Vite 6: TypeError: vite:css-analysis plugin transform is not a function #13

aeharding opened this issue Nov 23, 2024 · 3 comments · Fixed by #15
Labels
bug Something isn't working released

Comments

@aeharding
Copy link

Problem

Hi there! I am testing my build setup with vite 6 beta, and I noticed vite fails.

when I remove the patchCssModules plugin the error goes away.

Expected behavior

No errors

Minimal reproduction URL

https://stackblitz.com/edit/vitejs-vite-8sjmgl?file=package.json

Version

v1.6.0

Node.js version

v18.20.3

Package manager

pnpm

Operating system

Linux

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work financially will speed up resolution

  • I'm willing to offer financial support
@aeharding aeharding added the bug Something isn't working label Nov 23, 2024
@privatenumber
Copy link
Owner

Thanks for the issue.

I probably won't have a chance to work on this until Vite 6 is stable and I'm encountering this problem myself.

If you want to work on it though, feel free to open a PR.

@skewballfox
Copy link
Contributor

looked into this a little bit. It seems that configureServer from css-analysis is undefined. Looking through the cssAnalysis def it seems the returned server config was removed in this PR. I can try to see if I can fix it myself in a bit

@privatenumber
Copy link
Owner

🎉 This issue has been resolved in version 1.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
3 participants