nekken / ng2-fullcalendar

95 stars 47 forks source link

Installation with Angular 2 issues #65

Open hayanisaid opened 6 years ago

hayanisaid commented 6 years ago

I face a lot of errors while installation with Angular2 app.module.ts

@NgModule({
  declarations: [ 
AppComponent, 
CalendarComponent
    ]
});

app.component.ts

import { CKEditorModule } from 'ng2-ckeditor';

app.component.html

<div class="container">
     <angular2-fullcalendar [options]="calendarOptions"></angular2-fullcalendar>
    </div>

Type of errors that I got .

- Duplicate string index signature.
-Generic type 'PlainObject<T, any>' requires 2 type argument(s).
-
ERROR in /home/saad/Desktop/adv_js/projects/layla/node_modules/@types/jquery/index.d.ts (8035,29): Generic type 'jqXHR<TResolve, any>' requires 2 type argument(s).
-Duplicate identifier 'never'.
-ERROR in /home/saad/Desktop/adv_js/projects/node_modules/@types/jquery/index.d.ts (3920,21): Generic type 'EventHandler<TCurrentTarget, TData>' requires 2 type argument(s).

=> I Think the problem is with Jquery and there is some duplicated code

DarioN1 commented 3 years ago

delete node_modules from ng2-fullcalendar package