使用大括号、除号时小程序打包错误
814351846 opened this issue · comments
描述这个Bug
taro-react里使用bg-[#123456],w-1/2, w-[20rpx]报错
报错:
[ WXSS 文件编译错误]
ERR: wxss GetCompiledResult: ./app-origin.wxss(427:6): unexpected \
at pos 13681
(env: Windows,mp,1.06.2401020; lib: 3.3.4)
如何重现
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
运行环境
- OS: weapp
- Nodejs: 18x
- Framework: taro-react
这种情况是你没有顺利的注册好这个插件导致的
你可以参考 https://github.com/sonofmagic/taro-react-tailwind-vscode-template 这个模板项目进行一个配置
或者你也可以提供一个,可复现这个bug的一个用例