wuba / taro-playground

The Taro Playground App is a cross-platform application developed using Taro, to help developers develop and debug Taro applications.
https://wuba.github.io/taro-playground/
Apache License 2.0
248 stars 51 forks source link

这个项目是不支持小程序查看吗? #53

Closed wjkang closed 2 years ago

wjkang commented 2 years ago

运行 yarn dev:weapp 后报错:

./node_modules/@react-native-community/cameraroll/js/CameraRoll.js Module build failed (from ./node_modules/@tarojs/mini-runner/node_modules/babel-loader/lib/index.js): SyntaxError: /Users/ruoxie/Github/taro-playground/node_modules/@react-native-community/cameraroll/js/CameraRoll.js: Support for the experimental syntax 'flow' isn't currently enabled (32:8):

30 | }; 31 |

32 | export type GroupTypes = $Keys; | ^ 33 | 34 | export type Include = 35 | | 'filename'

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation. If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.

zhiqingchen commented 2 years ago

不支持

zhiqingchen commented 2 years ago

要兼容小程序,还需要做些处理

zhiqingchen commented 2 years ago

最新已支持