85872

ng2-smart-table has missing dependencies completer

<h3>Question</h3>

I am using Ng2SmartTable and I have this error:

<blockquote>

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

</blockquote>

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

<blockquote>

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

2.npm i ng2-completer --save

3.npm i rxjs-compat --save

</blockquote>
<h3>Answer1:</h3>

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

<blockquote>

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

</blockquote>

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


<h3>Answer2:</h3>

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.


<h3>Answer3:</h3>

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.

来源:https://stackoverflow.com/questions/61027486/ng2-smart-table-has-missing-dependencies-completer

Recommend

  • Only bottom corners rounded
  • zf2 way to set up a navigation bar
  • Dao method returns List while I need a Map
  • Laravel Eloquent, group by month/year
  • Haskell partial function application with $
  • How to format float number (Objective-C)
  • PowerShell + AD: Return users from within any groups in a specific OU, plus count
  • How to test Rate this app functionality before submitting to app store
  • Changing UITableViewCell's width constraint's constant value for each instance
  • Google Spreadsheets Copy Value and Formats Script Issues
  • How can I decrypt something with PyCrypto that was encrypted using OpenSSL?
  • Get all the values from excel file by using linqtoexcel
  • pyodbc fails without error
  • Rails Template Error with Heroku
  • How to get a Builder object from rows related to pivot - Laravel
  • using vtkTimerCallback with QVTKRenderWindowInteractor not working
  • Can I switch the 'connected' user within an sql script that is sourced by mysql?
  • Gitlab: copy project to other git lab repository
  • How do I change the names of buttons on a message box?
  • Is possible having two COM STA instances of the same component?
  • Facebook friend list in Facebook Android SDK 3.14
  • How can I filter an array of dictionaries in 'updateSearchResultsForSearchController' to s
  • Authorize Attribute Authentication with Postman in Web Api
  • Getting Microsoft Calibri font on Amazon EC2 ubuntu
  • Adding horizontal slider to QTableWidget
  • Pick Out Specific Number from Array? [duplicate]
  • What does “T extends Junk” mean in a generic class in Java?
  • How to use AJAX to upload large CSV file? [closed]
  • flex tree gets chopped even after using scroll bar
  • Swift: UIView.animate works unexpectedly
  • VS2010 RDLC C#. How can I set a LocalReport object to a ReportViewer?
  • Is there a better way for handling SpatialPolygons that cross the antimeridian (date line)?
  • How to call jQuery function in HTML returned by AJAX
  • How do I add a mouse over tooltip to an Image using .DrawImage()
  • How to warp text around image in iOS?