Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支付宝小程序 The "path" argument must be of type string. Received type object #7799

Closed
ywanhzy opened this issue Oct 9, 2020 · 4 comments
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-2 Version - 2.x

Comments

@ywanhzy
Copy link

ywanhzy commented Oct 9, 2020

相关平台

支付宝小程序

小程序基础库: 1
使用框架: React

复现步骤

微信小程序编译成功 支付宝小程序编译失败。错误提示The "path" argument must be of type string. Received type object

期望结果

运行正常

实际结果

编译失败

环境信息

  Taro CLI 3.0.10 environment info:
    System:
      OS: macOS 10.15
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.13.0 - /usr/local/bin/node
      Yarn: 1.15.2 - /usr/local/bin/yarn
      npm: 6.9.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 2.2.15 => 2.2.15 
      @tarojs/components: 2.2.15 => 2.2.15 
      @tarojs/mini-runner: 2.2.15 => 2.2.15 
      @tarojs/router: 2.2.15 => 2.2.15 
      @tarojs/taro: 2.2.15 => 2.2.15 
      @tarojs/taro-h5: 2.2.15 => 2.2.15 
      @tarojs/webpack-runner: 2.2.15 => 2.2.15 
      eslint-config-taro: 2.2.15 => 2.2.15 
      eslint-plugin-taro: 2.2.15 => 2.2.15 
      nerv-devtools: ^1.5.6 => 1.5.6 
      nervjs: ^1.5.6 => 1.5.6 
      taro-ui: 2.3.4 => 2.3.4 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-2 Version - 2.x labels Oct 9, 2020
@wangwenjie1314
Copy link

wangwenjie1314 commented Oct 9, 2020

同问,我的是字节小程序,编译失败
image

@wangwenjie1314
Copy link

wangwenjie1314 commented Oct 9, 2020

我的定位到问题了,我的项目使用了 物料市场的生成朋友圈海报插件,在非微信小程序下编译会报错;
import { CanvasDrawer } from 'taro-plugin-canvas';
image

@ywanhzy
Copy link
Author

ywanhzy commented Oct 11, 2020

我也找到问题的原因了 用了parser插件 没有引用支付宝的

@ywanhzy ywanhzy closed this as completed Oct 11, 2020
@BinZhiZhu
Copy link

哦豁 刚刚 npm run dev:tt 也是同样报错,看来得排查下哪些包或者插件没有做好env的限制

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-2 Version - 2.x
Projects
None yet
Development

No branches or pull requests

3 participants