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

flow #543

Closed
LuckySinvy opened this issue Aug 29, 2018 · 8 comments
Closed

flow #543

LuckySinvy opened this issue Aug 29, 2018 · 8 comments
Assignees

Comments

@LuckySinvy
Copy link

准备支持flow吗?

@yuche
Copy link
Contributor

yuche commented Aug 29, 2018

现在你用 Flow 有问题吗

@LuckySinvy
Copy link
Author

0.72
config中添加 babel-preset-flow 后依然无法编译

@LuckySinvy
Copy link
Author

LuckySinvy commented Aug 29, 2018

presets: [
        'env',
        '@babel/preset-flow'
      ],
{ SyntaxError: unknown: Unexpected token, expected , (12:16)
  10 | 
  11 | 
> 12 | function foo(one: any, two: number, three?): string {
     |                 ^
  13 |   return 'asdasds';
  14 | }
  15 | 
    at Parser.pp$5.raise (/Users/xxxxx/Desktop/xxxxx/node_modules/babylon/lib/index.js:4454:13)

@yuche yuche self-assigned this Aug 29, 2018
@yuche
Copy link
Contributor

yuche commented Aug 30, 2018

换最新的版本试试看?

@LuckySinvy
Copy link
Author

beta.20 一样的错误

@yuche
Copy link
Contributor

yuche commented Aug 30, 2018

是编译 h5 报的错还是小程序

@LuckySinvy
Copy link
Author

小程序

@yuche
Copy link
Contributor

yuche commented Oct 26, 2018

close via f0547b0

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