typescript - ag-grid-react 正在尝试导入 WrapableInterface 但在 ag-grid-community 中不存在
问题描述
这是我的 index.tsx
import { render } from 'react-dom';
import aggridcommunity from "ag-grid-community";
import aggridreact from "ag-grid-react";
构建错误:
node_modules/.pnpm/ag-grid-react@25.3.0_424f61aa2bacf9dc35e0f78db1edf809/node_modules/ag-grid-react/lib/reactComponent.d.ts:2:37 - 错误 TS2724: '"../../../. ./../ag-grid-community/main"' 没有名为 'WrapableInterface' 的导出成员。您的意思是“WrappableInterface”吗?
2 从“ag-grid-community”导入 { ComponentType、IComponent、WrapableInterface };
当我搜索这个文件时:
node_modules/.pnpm/ag-grid-react@25.3.0_424f61aa2bacf9dc35e0f78db1edf809/node_modules/ag-grid-react/lib/reactComponent.d.ts
未找到 WrapableInterface
import { ComponentType, IComponent, WrapableInterface } from 'ag-grid-community';
如何在 index.d.ts 中扩展 ag-grid-community 模块以包含它?
解决方案
推荐阅读
- c# - 将子应用程序添加到 IIS express
- javascript - 我想使用 apiwiki 将信息放入我的机器人
- apache - htaccess 重写一个目录和对该目录的所有请求到另一个目录
- javascript - jQuery 遍历 HTML Dom 元素字符串
- model-view-controller - 如何修复 cfWheels 错误:Wheels.TableNotFound?
- api - “API 网关”与“MQ 管理器”
- kubernetes-helm - 如何将掌舵图表推送到 Amazon ECR
- c# - 在仅软件触发模式下使用 Zebra DS457 条码扫描器进行扫描
- excel - 循环文件VBA
- javascript - 使用 ::after 转义 a 标签