【发布时间】:2022-01-21 22:05:26
【问题描述】:
只是在 vue 3 应用程序中弄乱了 tailwind css...看起来没有border-orange-400 实用程序类:
.notification-warning {
@apply border-orange-400 text-sm font-bold;
}
控制台输出:
Syntax Error: SyntaxError
(15:12) The `border-orange-400` class does not exist, but `border-green-400` does. If you're
sure that `border-orange-400` exists, make sure that any `@import` statements are being
properly processed before Tailwind CSS sees your CSS, as `@apply` can only be used for classes
in the same CSS tree.
我的 package.json sn-p:
"autoprefixer": "^9.8.8",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.0.0",
"postcss": "^7.0.39",
"prettier": "^2.2.1",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17",
"typescript": "~4.1.5",
"vue-jest": "^5.0.0-0"
【问题讨论】:
标签: css typescript vue.js vuejs3 tailwind-css