-
-
Notifications
You must be signed in to change notification settings - Fork 779
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
Warning: failed to find vite:css-post plugin. It might be an internal bug of UnoCSS #1653
Comments
you can provide a reproduction would be better~ |
I'm testing with this demo https://github.com/lightglitch/nuxt3-pnpm-monorepo |
Is this issue about |
@chris-zhu I don't think so, I downgraded to 0.45.20 to test it and still happens. |
same issue |
Can you provide a minimal reproduction ? |
same question。 |
@sudongyuer you can use https://github.com/lightglitch/nuxt3-pnpm-monorepo to replicate the issue. |
@ydcjeff please reopen this issue because doesn't have nothing to do with pathe. |
Same issue....same setup with mine
In my case this happens when I run Unocss recognises and bundles styles in the template but ignores styles in the style tag when I have see example below <script setup lang="ts"></script>
<template>
<div>
<h1 class="myClass bg-green">Hello from unocss</h1>
</div>
</template>
<style scoped>
.myClass{
@apply text-red; // this is generated in final build
}
</style> Notice the <style scoped lang="scss">
.myClass{
@apply text-red; // this is NOT generated in final build
}
</style>
|
With version v0.45.26 I don't get this warning anymore, maybe @therealokoro if your issue is also fixed please close this. |
v0.45.26 doesn't still fix it, Unfortunately s😥 Styles in lang=scss still don't get generate |
@therealokoro Please create a new issue with a minimal reproduction |
@therealokoro have you installed the loaders for sass? Because I was able to use your example just fine. |
minimal repro config: export default defineConfig({
publicDir: 'src/assets/libAssets',
resolve: {
alias: {
'@lib': resolve(__dirname, 'src/lib'),
'@assets': resolve(__dirname, 'src/assets'),
},
},
plugins: [
unoCSS(),
vue(),
dts({
insertTypesEntry: true,
outputDir: 'dist/libDist',
}),
],
build: {
lib: {
entry: resolve(__dirname, 'src/lib/main.lib.ts'),
formats: ['es'],
name: 'my-lib',
fileName: 'my-lib',
},
rollupOptions: {
external: ['vue', 'core-js', 'vue-i18n'],
output: {
sourcemap: true,
assetFileNames: 'my-lib.[ext]',
dir: 'dist/libDist', // THIS IS CAUSING THE ERROR
globals: {
vue: 'Vue',
},
},
},
},
}) |
I'm using pnpm with nuxt 3:
How can I debug the issue and solve it?
The text was updated successfully, but these errors were encountered: