taro中如何使用tailwindcss,使用tailwindcss报错的解决办法

我按照taro官网中的步骤去配置tailwindcss,但是卡在了npx tailwindcss init这一步,一直报错,尝试了很多种方法都不行。

后面让我找到了解决办法,安装tailwindcss的时候需要指定版本号为3,这样就不会报错了。

npm i -D tailwindcss@3

在taro中使用tailwindcss的具体步骤可以参考这个教程:https://weapp-tw.icebreaker.top/docs/quick-start/install

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: