标签: reactjs ag-grid preact ag-grid-react
我在我的项目中导入AgGridReact,如下所示: import { AgGridReact } from 'ag-grid-react';。 虽然库存在,但是lint不断向我显示以下错误:JSX element type 'AgGridReact' is not a constructor function for JSX elements.
import { AgGridReact } from 'ag-grid-react';
JSX element type 'AgGridReact' is not a constructor function for JSX elements.
我的版本是:
“ag-grid”:“^ 17.1.1”, “ag-grid-react”:“^ 17.1.0”