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 build fail on css-post since 2.9.2 #7717
Labels
regression
The issue only appears after a new release
Comments
I feel this one #7691 is affecting. (have not checked) |
I believe something like this would fix it: s.replace(/@import\s*(?:[a-z]*\()?(?:"[^"]*"|'[^']*'|[^;]*).*?;/gm, (match) => { Should I submit a PR or let the maintainers take care of this? |
yes, do it now. |
And I like this |
DiD3n
added a commit
to Newbies-Workplace/jeteo-web
that referenced
this issue
Apr 13, 2022
- downgrate vite version (postcss bug vitejs/vite#7717)
hugoattal
added a commit
to hugoattal/vite
that referenced
this issue
Apr 13, 2022
hugoattal
added a commit
to hugoattal/vite
that referenced
this issue
Apr 13, 2022
9 tasks
Done: #7718 |
patak-dev
pushed a commit
that referenced
this issue
Apr 13, 2022
Fixed in vite@2.9.4, thanks for the PR again @hugoattal |
9 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Since 2.9.2, I can't build my project. There seems to be some kind of CSS transform error.
I want to add that reverting to 2.9.1 fix the issue, so that might be introduced recently.
The
;
inside the string in this line seems to be the cause:esbuild\lib\main.js
file to trace it back here, it could be nice to have a better error display.Btw, I still don't really know if it's cause by Vite or Esbuild...
Reproduction
https://stackblitz.com/edit/vitejs-vite-k8dfzr?file=src%2FApp.vue&terminal=dev
I added the faulty line in the CSS of App.vue.
System Info
Used Package Manager
pnpm
Logs
Validations
The text was updated successfully, but these errors were encountered: