You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

运行项目报错:Cannot find module 'postcss-import' 求助

问题解决

你的代码里存在一个无效的Tailwind CSS类:text-gray-70,Tailwind的灰度颜色类采用50/100/200...900的色阶命名规则,不存在gray-70这个类。

修正后的代码

@import "tailwindcss/base";

@import "tailwindcss/components";

@import "tailwindcss/utilities";

@layer components{
    .icon{
        @apply hidden xl:inline-flex p-2 h-10 w-10 bg-gray-200 rounded-full text-gray-700 cursor-pointer hover:bg-gray-300;
    }
}

将text-gray-70替换为text-gray-700后,重新运行项目即可解决该错误。

内容的提问来源于stack exchange,提问作者TM12

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.02 13:05:19