Replies: 1 comment
-
Duplicated: #4777 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
使用pnpm create rsbuild@latest初始化一个vue项目,并且按官方文档安装了tailwindcssV4,
.test {
@apply bg-red-500
}
报错:× Error: Cannot apply unknown utility class: bg-red-500
2.在App.vue文件里面的以下写法不报错,可以正常使用:
项目使用最新的依赖包,如下:
{
"name": "abcdefg",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "rsbuild build",
"dev": "rsbuild dev --open",
"preview": "rsbuild preview"
},
"dependencies": {
"vue": "^3.5.13"
},
"devDependencies": {
"@rsbuild/core": "^1.2.16",
"@rsbuild/plugin-sass": "^1.2.2",
"@rsbuild/plugin-vue": "^1.0.7",
"@tailwindcss/postcss": "^4.0.12",
"tailwindcss": "^4.0.12"
}
}
Beta Was this translation helpful? Give feedback.
All reactions