akveo / ng2-smart-table

Angular Smart Data Table component
https://akveo.github.io/ng2-smart-table/
MIT License
1.63k stars 879 forks source link

required package @akveo/ng2-completer is not installed with ng2-smart-table #1191

Open ttpro1995 opened 4 years ago

ttpro1995 commented 4 years ago

I install with command npm install --save ng2-smart-table

Expected all dependencies packages of ng2-smart-table is installed as well. But @akveo/ng2-completer is not installed.

Error when run ng serve

chunk {main} main.js, main.js.map (main) 2.06 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 127 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 1.16 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 340 kB [initial] [rendered]
Date: 2020-07-24T10:45:09.790Z - Hash: 91220a77902ed7144e27 - Time: 18068ms

ERROR in node_modules/ng2-smart-table/lib/components/cell/cell-editors/completer-editor.component.d.ts:2:34 - error TS2307: Cannot find module '@akveo/ng2-completer'.

2 import { CompleterService } from '@akveo/ng2-completer';
                                   ~~~~~~~~~~~~~~~~~~~~~~
node_modules/ng2-smart-table/lib/components/filter/filter-types/completer-filter.component.d.ts:3:34 - error TS2307: Cannot find module '@akveo/ng2-completer'.

3 import { CompleterService } from '@akveo/ng2-completer';
                                   ~~~~~~~~~~~~~~~~~~~~~~
node_modules/ng2-smart-table/lib/components/tbody/tbody.component.d.ts:29:9 - error TS1086: An accessor cannot be declared in an ambient context.

29     get tableColumnsCount(): number;
           ~~~~~~~~~~~~~~~~~

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
ℹ 「wdm」: Failed to compile.
osca commented 4 years ago

I ran into the same issue on the latest version. To get this fixed temporarily, I installed both dependencies myself in my package.json dependencies:

...
"@akveo/ng2-completer": "^9.0.1",
"ng2-completer": "^9.0.1",
...