에서 옵션'.- 점점 오류 '더 수출 멤버가 없다', 임 사용fullcalendar가 'I 단계로이 <a href="https://github.com/lbertenasco/ap-ng2-fullcalendar-demo" rel="nofollow noreferrer">ApNg2Fullcalendar</a> 설치 구조의 단계를 수행하고 있습니다
node_modules/ap-angular2-fullcalendar/src/calendar/calendar.d.ts (3,10) : 오류 TS2305 : 모듈 'fullcalendar'에 내 보낸 구성원이 없습니다. '옵션'. node_modules/fullcalendar/dist/fullcalendar.d.ts (695,36) : 오류 TS2304 : 'JQueryPromise'라는 이름을 찾을 수 없습니다. node_modules/fullcalendar/dist/fullcalendar.d.ts (696,29) : 오류 TS2304 : 'JQueryPromise'라는 이름을 찾을 수 없습니다. node_modules/fullcalendar/dist/fullcalendar.d.ts (697,20) : 오류 TS2304 : 'JQueryPromise'이름을 찾을 수 없습니다. node_modules/fullcalendar/dist/fullcalendar.d.ts (759,22) : 오류 TS2304 : 'JQueryPromise'이름을 찾을 수 없습니다. node_modules/fullcalendar/dist/fullcalendar.d.ts (775,50) : 오류 TS2304 : 'JQueryPromise'이름을 찾을 수 없습니다. node_modules/fullcalendar/dist/fullcalendar.d.ts (988,23) : 오류 TS2304 : 'JQueryEventObject'라는 이름을 찾을 수 없습니다. node_modules/fullcalendar/dist/fullcalendar.d.ts (1401,70) : 오류 TS2304 : 'JQueryAjaxSettings'라는 이름을 찾을 수 없습니다. node_modules/fullcalendar/dist/fullcalendar.d.ts (1603,50) : 오류 TS2304 : 'JQueryPromise'이름을 찾을 수 없습니다. node_modules/fullcalendar/dist/fullcalendar.d.ts (1623,50) : 오류 TS2304 : 'JQueryPromise'이름을 찾을 수 없습니다. node_modules/fullcalendar/dist/fullcalendar.d.ts (2588,50) : 오류 TS2304 : 'JQueryPromise'이름을 찾을 수 없습니다.
어떻게 고칠 수 있습니까? 내 index.component.ts
import { Component, } from '@angular/core';
import 'Fullcalendar';
@Component({
selector: 'app-index',
templateUrl: './index.component.html',
styleUrls: ['./index.component.css']
})
export class IndexComponent {
title = 'app';
calendarOptions:Object = {
height: 'parent',
fixedWeekCount : false,
defaultDate: '2016-09-12',
editable: true,
eventLimit: true, // allow "more" link when too many events
events: [
{
title: 'All Day Event',
start: '2016-09-01'
},
{
title: 'Long Event',
start: '2016-09-07',
end: '2016-09-10'
},
{
id: 999,
title: 'Repeating Event',
start: '2016-09-09T16:00:00'
},
{
id: 999,
title: 'Repeating Event',
start: '2016-09-16T16:00:00'
},
{
title: 'Conference',
start: '2016-09-11',
end: '2016-09-13'
},
{
title: 'Meeting',
start: '2016-09-12T10:30:00',
end: '2016-09-12T12:30:00'
},
{
title: 'Lunch',
start: '2016-09-12T12:00:00'
},
{
title: 'Meeting',
start: '2016-09-12T14:30:00'
},
{
title: 'Happy Hour',
start: '2016-09-12T17:30:00'
},
{
title: 'Dinner',
start: '2016-09-12T20:00:00'
},
{
title: 'Birthday Party',
start: '2016-09-13T07:00:00'
},
{
title: 'Click for Google',
url: 'http://google.com/',
start: '2016-09-28'
}
]
};
onCalendarInit(initialized: boolean) {
console.log('Calendar initialized');
}
}
app.module.ts
import { CalendarComponent } from 'ap-angular2-fullcalendar';
import { CalendarModule } from 'ap-angular2-fullcalendar';
@NgModule({
declarations: [
AppComponent,
IndexComponent,
CalendarComponent
],
imports: [
BrowserModule,
NgbModule.forRoot(),
AngularFontAwesomeModule,
routes
],
index.component.html
<angular2-fullcalendar [options]="calendarOptions" (initialized)="onCalendarInit($event)"></angular2-fullcalendar>
고마워요.이'npm install fullcalendar @ 3.6.1'이 이제 작동합니다. – core114
@Ruslan Kovalchuk 같은 일을하고 있지만 작동하지 않습니다 ...! – Kansara
@Kansara 이걸 시도해'npm install fullcalendar @ 3.6.1' – core114