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

build:weapp报错 #8224

Closed
xiaoai7904 opened this issue Dec 9, 2020 · 2 comments
Closed

build:weapp报错 #8224

xiaoai7904 opened this issue Dec 9, 2020 · 2 comments
Labels
F-react Framework - React question Further information is requested T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@xiaoai7904
Copy link

相关平台

微信小程序

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

复现步骤

npm run build:weapp

期望结果

正常运行

实际结果

(node:86138) UnhandledPromiseRejectionWarning: /Users/xxx/work/taro/smallShop/node_modules/_p-limit@3.1.0@p-limit/index.js:29
} catch {}
^

SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Module._compile (/Users/xxx/work/taro/smallShop/node_modules/_pirates@4.0.1@pirates/lib/index.js:99:24)
at Module._extensions..js (module.js:663:10)
at Object.newLoader [as .js] (/Users/xxx/work/taro/smallShop/node_modules/_pirates@4.0.1@pirates/lib/index.js:104:7)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/Users/xxx/work/taro/smallShop/node_modules/_terser-webpack-plugin@3.1.0@terser-webpack-plugin/dist/index.js:26:38)
at Module._compile (module.js:652:30)
at Module._compile (/Users/xxx/work/taro/smallShop/node_modules/_pirates@4.0.1@pirates/lib/index.js:99:24)
at Module._extensions..js (module.js:663:10)
at Object.newLoader [as .js] (/Users/xxx/work/taro/smallShop/node_modules/_pirates@4.0.1@pirates/lib/index.js:104:7)

环境信息

 Taro CLI 3.0.18 environment info:
    System:
      OS: macOS High Sierra 10.13.4
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.15.1 - ~/.nvm/versions/node/v14.15.1/bin/node
      npm: 6.14.8 - ~/.nvm/versions/node/v14.15.1/bin/npm
    npmPackages:
      @tarojs/cli: 3.0.18 => 3.0.18 
      @tarojs/components: 3.0.18 => 3.0.18 
      @tarojs/mini-runner: 3.0.18 => 3.0.18 
      @tarojs/react: 3.0.18 => 3.0.18 
      @tarojs/runtime: 3.0.18 => 3.0.18 
      @tarojs/taro: 3.0.18 => 3.0.18 
      @tarojs/webpack-runner: 3.0.18 => 3.0.18 
      babel-preset-taro: 3.0.18 => 3.0.18 
      eslint-config-taro: 3.0.18 => 3.0.18 
      react: ^16.10.0 => 16.14.0 
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.3 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Dec 9, 2020
@luckyadam
Copy link
Member

请提供一个可以复现的 demo

@Chen-jj Chen-jj added the question Further information is requested label Dec 10, 2020
@xiaoai7904
Copy link
Author

node版本问题
googleapis/nodejs-storage#1274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React question Further information is requested T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

3 participants