ng2-smart-table has missing dependencies completer
Asked Answered
H

10

14

I am using Ng2SmartTable and I have this error:

ERROR in The target entry-point "ng2-smart-table" has missing dependencies: - @ akveo / ng2-completer

I have already tried the following commands and it does not work:

1.npm install --save ng2-smart-table

2.npm i ng2-completer --save

3.npm i rxjs-compat --save

Headstall answered 4/4, 2020 at 11:36 Comment(0)
V
6

uninstall by using below command:-

npm uni @akveo/ng2-completer

install by using below command:-

npm i ng2-completer

It solve my problem !!

For further detail:- https://github.com/akveo/ng2-smart-table/commit/59c3a7885591f1e003dbd67fa80844d187a89244

Verbatim answered 24/1, 2022 at 17:15 Comment(0)
P
3

just a heads up if you're upgrading ng-smart-table to v.1.7.0, there is a BREAKING change with the ng2-completer package, see https://github.com/akveo/ng2-smart-table/commit/59c3a7885591f1e003dbd67fa80844d187a89244

Plasterwork answered 6/11, 2020 at 3:52 Comment(0)
S
3
    npm install ng2-smart-table
    npm install ng2-completer

If still don't work: delete node_module/ folder (install dependencies again)

    npm install
Singley answered 27/3, 2021 at 1:16 Comment(0)
C
2

try this.

npm i rxjs-compat --save
npm i @akveo/ng2-completer --save

See here. https://github.com/yggg/ng2-smart-table/commit/8a4f0bb

As mentioned above, you need to be careful.

Conspicuous answered 9/5, 2020 at 14:47 Comment(1)
Didnt work, but I found that the following did npm i rxjs-compat --save npm i ng2-completer --saveStromboli
B
1

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, with @akveo/ng2-completer dependency only.

Broth answered 29/4, 2020 at 19:50 Comment(3)
Did you install @akveo/ng2-completer ?Impetus
Thanks, It works now. I was using ng2-completer, didn't know of @akveo/ng2-completer package. But what is the significance of Ivy engine, I am not sure. It works without the "enableIvy": true flag also.Mohn
Thanks for your feedback.Impetus
H
1

For this version

"ng2-smart-table": "^1.6.0"

I had to run

npm install --save ng2-completer

because version 1.6.0 use require('ng2-completer') instead of require('@akveo/ng2-completer')

Haiduk answered 4/12, 2020 at 15:29 Comment(0)
H
1

at the moment, i also installed both

ng2-smart-table at 1.7.2
@akveo/ng2-completer at 9.0.1

i found a problem when used ng2-smart-table at 1.7.2

so, i downgraded ng2-smart-table to 1.6.0.

it seems work for me.

Hailstone answered 28/6, 2021 at 9:33 Comment(0)
O
0

I also faced the same issue while trying to install ng2-smart-table

In ng2-smart-table the CompleterService is imported in the following way

import { CompleterService } from '@akveo/ng2-completer';

But if we open ng2-completer from node_modules you can see the ng2-completer is not within the '@akveo' folder

So just create a new folder in node_module and rename it as @akveo and copy the ng2-completer files into @akevo folder

Now open package.json , package.lock.json and change ng2-completer to @akveo/ng2-completer and restart the server

it will be working fine

Thanks

Outcome answered 9/4, 2020 at 19:56 Comment(3)
You should not change the content of node_modules directory by hand.Substructure
could you tell me the reason but my project runs without any problem @A.ElIdrissiOutcome
@ Vignesh A. As you know node_modules directory is managed automatically by npm.Substructure
P
0

For my Angular 11 project, I got it solved by installing following two packages to get ng2-smart-table running:

npm i ng2-smart-table --save

npm i ng2-completer --save

Pneumograph answered 9/2, 2021 at 6:14 Comment(0)
S
-1

Try this: npm install ng2-completer --save-dev

More details are available here

Sparling answered 26/8, 2021 at 21:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.