taro
taro copied to clipboard
[3.6.24]taro组件通过new-blended模式编译成支付宝原生组件,引入支付宝原生页面不展示
相关平台
支付宝小程序
复现仓库
[email protected]:Colunmdear/alipay-mini.git 小程序基础库: 2.0 使用框架: React
复现步骤
按照https://github.com/NervJS/taro/tree/main/examples/new-blended的例子来执行的 执行 "build:alipay": "taro build --type alipay --new-blended"编译成支付宝小程序 将打包的dist移入原生小程序项目 引入打包的组件 引入是正常的,但是页面上不展示 同时打包的dist的acss里面加载的都是../../app.wxss,要改成../../app.acss
期望结果
组件正常展示 编译加载css对应支付宝的acss
实际结果
组件不展示展示 编译加载css对应微信的wxss
环境信息
👽 Taro v3.6.24
Taro CLI 3.6.24 environment info:
System:
OS: macOS 14.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.15.0 - ~/Library/Caches/fnm_multishells/1142_1709620209005/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 8.5.5 - ~/Library/Caches/fnm_multishells/1142_1709620209005/bin/npm
npmPackages:
@tarojs/cli: 3.6.24 => 3.6.24
@tarojs/components: 3.6.24 => 3.6.24
@tarojs/helper: 3.6.24 => 3.6.24
@tarojs/plugin-framework-react: 3.6.24 => 3.6.24
@tarojs/plugin-platform-alipay: 3.6.24 => 3.6.24
@tarojs/plugin-platform-h5: 3.6.24 => 3.6.24
@tarojs/plugin-platform-jd: 3.6.24 => 3.6.24
@tarojs/plugin-platform-qq: 3.6.24 => 3.6.24
@tarojs/plugin-platform-swan: 3.6.24 => 3.6.24
@tarojs/plugin-platform-tt: 3.6.24 => 3.6.24
@tarojs/plugin-platform-weapp: 3.6.24 => 3.6.24
@tarojs/react: 3.6.24 => 3.6.24
@tarojs/runtime: 3.6.24 => 3.6.24
@tarojs/shared: 3.6.24 => 3.6.24
@tarojs/taro: 3.6.24 => 3.6.24
@tarojs/taro-loader: 3.6.24 => 3.6.24
@tarojs/webpack5-runner: 3.6.24 => 3.6.24
babel-preset-taro: 3.6.24 => 3.6.24
eslint-config-taro: 3.6.24 => 3.6.24
react: ^18.0.0 => 18.2.0
npmGlobalPackages:
typescript: 5.0.2
pages页面对应的acss加载的app.wxss不对,对应支付宝小程序的应该是app.acss
组件被加载了,但是并不展示
遇到了同样的问题,组件加载了,但是没有渲染,没有展示