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

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

Closed
wjkang opened this issue Apr 7, 2022 · 3 comments
Closed

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

wjkang opened this issue Apr 7, 2022 · 3 comments

Comments

@wjkang
Copy link

wjkang commented Apr 7, 2022

运行 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
Copy link
Member

不支持

@zhiqingchen
Copy link
Member

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

@wjkang wjkang closed this as completed Apr 7, 2022
@zhiqingchen
Copy link
Member

最新已支持

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants