NervJS / taro

开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
https://docs.taro.zone/
Other
35.6k stars 4.8k forks source link

编译快应用报错 #7356

Open heymie opened 4 years ago

heymie commented 4 years ago

相关平台

快应用

复现仓库

https://github.com/heymie/taro_issue_newCon 小程序基础库: 1075 使用框架: React

复现步骤

编译成快应用代码 安装rpk文件,运行失败

期望结果

能够正常运行

实际结果

进入报错

环境信息


  Taro CLI 1.3.45 environment info:
    System:
      OS: macOS 10.14.5
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.13.0 - ~/.nvm/versions/node/v10.13.0/bin/node
      npm: 6.4.1 - ~/.nvm/versions/node/v10.13.0/bin/npm
    npmPackages:
      @tarojs/components: 1.3.45 => 1.3.45 
      @tarojs/components-qa: 1.3.45 => 1.3.45 
      @tarojs/plugin-babel: 1.3.45 => 1.3.45 
      @tarojs/plugin-csso: 1.3.45 => 1.3.45 
      @tarojs/plugin-sass: 1.3.45 => 1.3.45 
      @tarojs/plugin-uglifyjs: 1.3.45 => 1.3.45 
      @tarojs/router: 1.3.45 => 1.3.45 
      @tarojs/taro: 1.3.45 => 1.3.45 
      @tarojs/taro-alipay: 1.3.45 => 1.3.45 
      @tarojs/taro-h5: 1.3.45 => 1.3.45 
      @tarojs/taro-qq: 1.3.45 => 1.3.45 
      @tarojs/taro-quickapp: 1.3.45 => 1.3.45 
      @tarojs/taro-swan: 1.3.45 => 1.3.45 
      @tarojs/taro-tt: 1.3.45 => 1.3.45 
      @tarojs/taro-weapp: 1.3.45 => 1.3.45 
      @tarojs/webpack-runner: 1.3.45 => 1.3.45 
      eslint-config-taro: 1.3.45 => 1.3.45 
      eslint-plugin-taro: 1.3.45 => 1.3.45 
      nerv-devtools: ^1.5.0 => 1.5.7 
      nervjs: ^1.5.0 => 1.5.7 
      stylelint-config-taro-rn: 1.3.45 => 1.3.45 
      stylelint-taro-rn: 1.3.45 => 1.3.45 

补充信息

withWeapp这个装饰器的使用存在问题,编译后的快应用代码,是否需要针对装饰器进行设置?

heymie commented 4 years ago

image