You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the uno 0.52.3 version, if you use the transformer class with a non-default classPrefix configuration for vite and vuejs, you will encounter the error shown in the image below:
How to use:
uno.config.ts configuration file:
import{defineConfig,presetUno,transformerCompileClass,}from'unocss';exportdefaultdefineConfig({presets: [presetUno(),],include: /(vue|ts|html)/,exclude: /(node_modules)/,transformers: [transformerCompileClass({// This configuration is causing an error.classPrefix: 'ui-',}),],});
You can temporarily use the solution I implemented in this PR #2664, as the described issues have been resolved by me. However, the PR has not been approved yet.
UnoCSS version
0.52.3
Describe the bug
When using the uno 0.52.3 version, if you use the transformer class with a non-default classPrefix configuration for vite and vuejs, you will encounter the error shown in the image below:
How to use:
uno.config.ts configuration file:
Reproduction
StackBlitz sample:
https://stackblitz.com/edit/vitejs-vite-r1w7qg?file=uno.config.ts
System Info
No response
Validations
The text was updated successfully, but these errors were encountered: