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 TS2314: Generic type 'OwlDateTime<T>' requires 1 type argument(s).

See original GitHub issue

opting into angular ivy as mention in https://angular.io/guide/ivy#using-ivy-in-an-existing-project by adding

  "angularCompilerOptions": {
    "enableIvy": true
  }

result in the following the error

ERROR in node_modules/ng-pick-datetime/date-time/date-time.class.d.ts(50,40): error TS2314: Generic type 'OwlDateTime<T>' requires 1 type argument(s).

modifying the file node_modules\ng-pick-datetime\date-time\date-time.class.d.ts by replacing

static ngBaseDef: ɵngcc0.ɵɵBaseDef<OwlDateTime>;
by
static ngBaseDef: ɵngcc0.ɵɵBaseDef<OwlDateTime<Date>>;

fix the problem but can’t replace it with T because it’s static

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:8
  • Comments:11

github_iconTop GitHub Comments

2reactions
dashakdsrcommented, Oct 11, 2019

The same issue. Any solution? @DanielYKPan

Error when “sourceMap”: false

in angular.json for build

1reaction
haerulmutakincommented, Oct 5, 2019

Any solution for this problem. i face the same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generic type 'Observable<T>' requires 1 type argument
Error are,. TS2314 Generic type 'Observable' requires 1 type argument(s). TS7006 Parameter 'data' implicitly has an 'any' type.
Read more >
how to add date picker inside dialogflow parameters-angular.js
For facebook I don't thing there is anything yet. ... Angular 11 Generic type 'HttpRequest<T>' requires 1 type argument(s).ts(2314) · How RxJS Subscriptions ......
Read more >
angular-material-components/datetime-picker - npm
TypeScript icon, indicating that this package has built-in type declarations. 9.0.0 • Public • Published a month ago. Readme · Code Beta ·...
Read more >
Owl Date Time Picker - OwlCool
Owl DateTimePicker is an Angular component that allows users to enter a date and/or time either through text input, or by choosing a...
Read more >
error TS2314: Generic type 'ɵɵComponentDeclaration ...
error TS2314 : Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s) · 1:56 AM angular, font-awesome, html, typescript No comments ...
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