【问题标题】:signature-verification-failure : In Flow-ReactJs签名验证失败:在 Flow-ReactJs 中
【发布时间】:2021-09-17 18:08:08
【问题描述】:

无法为此模块构建类型化接口。您应该使用类型注释此模块的导出。缺少类型 函数返回注释:[签名验证失败] 运行“npm run flow”时出现此错误

    //@flow
import  { Component } from 'react'
import * as React from 'react';
import './App.css';

class App extends Component<any> {
  render() {
    return (
      <div className="App">

      </div>
    );
  }
}

【问题讨论】:

    标签: reactjs flowtype


    【解决方案1】:
      render(): React.Node {
        return (
          <div className="App">
    
          </div>
        );
      }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-28
      • 2013-10-28
      • 2020-11-02
      • 2016-01-13
      • 2011-07-09
      • 1970-01-01
      相关资源
      最近更新 更多