使用不带SystemJS的材料组件的AG-GRID
我试图在我的AG-GRID项目中使用材料组件 我尝试按照网站示例导入相关内容 但是,这会引发以下错误:使用不带SystemJS的材料组件的AG-GRID,ag-grid,ag-grid-angular,Ag Grid,Ag Grid Angular,我试图在我的AG-GRID项目中使用材料组件 我尝试按照网站示例导入相关内容 但是,这会引发以下错误: ERROR in src/app/components/shot/shot-list/shot-list.component.ts(33,56): error TS2307: Cannot find module '@ag-grid-community/all-modules'. ERROR in shot-list.component.ts(32,31): error TS2305: Mo
ERROR in src/app/components/shot/shot-list/shot-list.component.ts(33,56): error TS2307: Cannot find module '@ag-grid-community/all-modules'.
ERROR in shot-list.component.ts(32,31): error TS2305: Module '"C:/Users/............/ag-grid-community/main"' has no exported member 'AllCommunityModules'.
我已经按照说明安装了ag grid community和angular
我已经检查了npm列表,它提供了以下安装版本:
+-- ag-grid@18.1.2
+-- ag-grid-angular@23.0.3
+-- ag-grid-community@23.0.2
My app.module.ts具有以下导入功能:
import { AgGridModule } from 'ag-grid-angular';
我没有使用SystemJS
我已经尝试过了,当我尝试直接从“ag网格社区”导入时,就像这样
import { GridOptions, Module, AllCommunityModules } from 'ag-grid-community';
它抛出以下错误:
ERROR in src/app/components/shot/shot-list/shot-list.component.ts(33,56): error TS2307: Cannot find module '@ag-grid-community/all-modules'.
ERROR in shot-list.component.ts(32,31): error TS2305: Module '"C:/Users/............/ag-grid-community/main"' has no exported member 'AllCommunityModules'.
我是否需要在app.modules.ts中导入更多内容?
我在做什么蠢事吗
谢谢我不知道您想做什么,只需从导入中删除
模块
和所有通信模块
没有导出的成员ag网格社区
模块
没有导出的成员ag网格社区
AllCommunityModules
import { GridOptions } from 'ag-grid-community';