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

Generating umd or iife bundle not working with vite@2.9.14 #1241

Closed
kingcw opened this issue Jul 11, 2022 · 2 comments
Closed

Generating umd or iife bundle not working with vite@2.9.14 #1241

kingcw opened this issue Jul 11, 2022 · 2 comments

Comments

@kingcw
Copy link

kingcw commented Jul 11, 2022

Generating umd or iife bundle is working with vite@2.9.13, but not working with vite@2.9.14

error is:
[unocss] does not found CSS placeholder in the generated chunks, this is likely an internal bug of unocss vite plugin

error is found in this file, line 195. problem code block should start at line 180:
https://github.com/unocss/unocss/blob/main/packages/vite/src/modes/global/build.ts

@vipero07
Copy link
Contributor

I'm actually seeing this issue with vite@2.9.13 too.
Downgrading unocss to 0.42.1 seems to fix this for me.

@antfu
Copy link
Member

antfu commented Jul 12, 2022

We temporarily close this due to the lack of enough information.
Please provide a minimal reproduction to reopen the issue.
Thanks.

Why reproduction is required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants