Error: Target entry-point has missing dependencies
See original GitHub issueHey 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:
- Created 4 years ago
- Reactions:6
- Comments:12 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Are there any plans in the near future to fix this problem? I really wanted to use this without moment.
As a workaround including moment as a dev dependency does not raise the error
npm install moment --save-dev