react-google-maps :超级表达式必须为 null 或函数,而不是未定义

react-google-maps : Super expression must either be null or a function, not undefined

当我刚刚导入 react-google-maps 时,我遇到了这个奇怪的错误(超级表达式必须为 null 或函数,而不是未定义的)。有什么想法吗?

import React from 'react';
import { GoogleMap } from 'react-google-maps';

class GoogleMapFlow extends React.Component{
    constructor(props){
        super(props);
    }

    render() {
        return (
            <div>Hello World</div>
        );
    }
}

export default GoogleMapFlow;

我在 react-google-maps 的 9.4.5 版中遇到了同样的问题,但 React 是 v0.14.8。更新对 16 的反应解决了问题。