我正在使用ng2-table,当我从npm安装它时,一切都很好。
但是,我需要使用某人的分叉,所以我来自分叉npm install
:
npm install constantorbit/ng2-table --save
但显然我需要在我的app模块中更改某些东西才能导入它?
是:
import { Ng2TableModule } from 'ng2-table/ng2-table';
我尝试将其更改为
import { Ng2TableModule } from 'constantorbit/ng2-table';
但无济于事:
ERROR in Error encountered resolving symbol values statically. Could not resolve constantorbit/ng2-table relative to /Users/dhaskin/clients/io/val2/val2/src/app/app.module.ts., resolving symbol AppModule in /Users/dhaskin/clients/io/val2/val2/src/app/app.module.ts, resolving symbol AppModule in /Users/dhaskin/clients/io/val2/val2/src/app/app.module.ts
ERROR in /Users/dhaskin/clients/io/val2/val2/src/app/app.module.ts (13,32): Cannot find module 'constantorbit/ng2-table'.)
ERROR in ./src/app/app.module.ts
Module not found: Error: Can't resolve 'constantorbit/ng2-table' in '/Users/dhaskin/clients/io/val2/val2/src/app'
@ ./src/app/app.module.ts 19:18-52
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts