1、Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
通常是node版本较高导致
推荐文章:mac下关于node版本的切换_mac切换node版本_月亮睡在雾里的博客-CSDN博客
2、找不到依赖 "@tarojs/plugin-platform-alipay",请先在项目中安装
解决方案:通常是taro版本过高导致,版本降级即可
cnpm i -g @tarojs/cli@3.0.8
3、同时编译微信、支付宝、h5等多端应用(需在dist文件下生成不同的包)。
解决方法:根目录 config/index.js 下,调整:outputRoot: `dist/${process.env.TARO_ENV}`
4、新建的项目,VsCode莫名提示报错
Parsing error: No Babel config file detected for /Users/txp/Desktop/Project/txp/xcx/Taro-MilkOrder-24h/config/dev.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files.eslint
解决方法:根目录新建 .eslintrc.json,并写入
{
"extends": [
"taro/react",
"plugin:prettier/recommended"
]
}
5、不要使用 CoverView,CoverImage 标签,存在很严重的样式适配问题,使用View,Image代替
持续更新中。。。
目录
2、找不到依赖 "@tarojs/plugin-platform-alipay",请先在项目中安装
3、同时编译微信、支付宝、h5等多端应用(需在dist文件下生成不同的包)。
5、不要使用 CoverView,CoverImage 标签,存在很严重的样式适配问题,使用View,Image代替