akveo / ng2-smart-table

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

Error: Can't resolve 'ng2-completer' #845

Open SamuelMarks opened 6 years ago

SamuelMarks commented 6 years ago

Followed your setup guide, but got this:

ERROR in ./node_modules/ng2-smart-table/components/cell/cell.module.js
Module not found: Error: Can't resolve 'ng2-completer' in '/node_modules/ng2-smart-table/components/cell'
ERROR in ./node_modules/ng2-smart-table/components/cell/cell-editors/completer-editor.component.js
Module not found: Error: Can't resolve 'ng2-completer' in '/node_modules/ng2-smart-table/components/cell/cell-editors'
ERROR in ./node_modules/ng2-smart-table/components/filter/filter.module.js
Module not found: Error: Can't resolve 'ng2-completer' in '/node_modules/ng2-smart-table/components/filter'
ERROR in ./node_modules/ng2-smart-table/components/filter/filter-types/completer-filter.component.js
Module not found: Error: Can't resolve 'ng2-completer' in '/node_modules/ng2-smart-table/components/filter/filter-types'

But you've already said you don't want to include it: https://github.com/akveo/ng2-smart-table/pull/824#issuecomment-401113672

Related: https://github.com/oferh/ng2-completer/pull/401

KManu commented 6 years ago

Solved this by including ng2-completer as a dev dependency

npm install ng2-completer --save-dev

Chiff commented 6 years ago

On Angular@6.1.0 helped me

  1. yarn add --dev ng2-completer
  2. yarn add rxjs-compat
asmaa3107 commented 5 years ago

error still exist even after install completer.., anu help?

almgwary commented 5 years ago

Solved

npm i rxjs-compat --save
npm i ng2-completer --save
zakariasafidibe commented 4 years ago

try this : npm i @akveo/ng2-completer its work for me

vigneshpy commented 4 years ago

try this ng2-smart-table has missing dependencies completer. its working for me

lucasglobalsys commented 4 years ago

Installing the dependencies makes it work in dev, but in the build prod there is a problem.

for Angular 9+ try this: in your tsconfig.app.json, set

 "angularCompilerOptions": {
    "enableIvy": true
  }

its worked for me, in build prod, with @akveo/ng2-completer dependency only.

minusZeroo commented 2 years ago

Solved this by including ng2-completer as a dev dependency

npm install ng2-completer --save-dev

Worked! for me. Thanks