question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Target entry-point has missing dependencies

See original GitHub issue

Hey I tried to use this package with the native Adapter (instead of the moment adapter) but with Angular 9 (the ivy renderer) I get this error when trying to ng serve my project:

ERROR in The target entry-point "@danielmoncada/angular-datetime-picker" has missing dependencies:
 - moment

So I guess even though I don’t import the moment adapter your package still suggests that it depends on momentjs?

My implementation:

import { NgModule } from '@angular/core';
import { OwlDateTimeModule, OwlNativeDateTimeModule } from '@danielmoncada/angular-datetime-picker';

import { SharedModule } from '../../shared.module';
import { DatepickerComponent } from './datepicker.component';

@NgModule({
  declarations: [
    DatepickerComponent
  ],
  imports: [
    SharedModule,
    OwlDateTimeModule,
    OwlNativeDateTimeModule,
  ],
  exports: [
    DatepickerComponent
  ]
})
export class DatepickerModule { }

In the template:

<input [owlDateTime]="datepicker">
<owl-date-time #datepicker></owl-date-time>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
ioistecommented, Jun 2, 2020

Are there any plans in the near future to fix this problem? I really wanted to use this without moment.

5reactions
petemcwilliamscommented, Apr 1, 2020

As a workaround including moment as a dev dependency does not raise the error

npm install moment --save-dev

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 9 - The target entry-point has missing dependencies
I had The target entry-point has missing dependencies error when starting my Angular project with npm run start .
Read more >
The target entry-point -has missing dependencies: - Ionic Native
When I try to build my ionic mobile app on android I get the following error. An error occurred during the build: Error:...
Read more >
ERROR in the target entry-point "my-library" has missing ...
This looks like a bug in your library, not ng-packagr, nor Angular 9. The library appears to contain deep imports into the mentioned...
Read more >
the target entry-point "@angular/material/menu" - CodeProject
The "missing dependencies" list means you need to install the CDK libraries: npm install --save @angular/material @angular/cdk
Read more >
ERROR in The target entry-point "@progress/kendo-angular ...
ERROR in The target entry-point "@progress/kendo-angular-editor" has missing dependencies: - @progress/kendo-angular-treeview.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found