Angular 完整日历'';没有导出的成员';选项';-角度测量中的误差

Angular 完整日历'';没有导出的成员';选项';-角度测量中的误差,angular,fullcalendar,fullcalendar-scheduler,Angular,Fullcalendar,Fullcalendar Scheduler,我正在一步一步地遵循这个安装结构,我使用了Angular 5 但我有以下错误 节点模块/ap-angular2-fullcalendar/src/calendar/calendar.d.ts(3,10): 错误TS2305:模块“fullcalendar”没有导出的成员 “选项”。节点模块/fullcalendar/dist/fullcalendar.d.ts(695,36): 错误TS2304:找不到名称“JQueryPromise”。 节点模块/fullcalendar/dist/full

我正在一步一步地遵循这个安装结构,我使用了Angular 5

但我有以下错误

节点模块/ap-angular2-fullcalendar/src/calendar/calendar.d.ts(3,10): 错误TS2305:模块“fullcalendar”没有导出的成员 “选项”。节点模块/fullcalendar/dist/fullcalendar.d.ts(695,36): 错误TS2304:找不到名称“JQueryPromise”。 节点模块/fullcalendar/dist/fullcalendar.d.ts(696,29):错误 TS2304:找不到名称“JQueryPromise”。 节点模块/fullcalendar/dist/fullcalendar.d.ts(697,20):错误 TS2304:找不到名称“JQueryPromise”。 节点模块/fullcalendar/dist/fullcalendar.d.ts(759,22):错误 TS2304:找不到名称“JQueryPromise”。 节点模块/fullcalendar/dist/fullcalendar.d.ts(775,50):错误 TS2304:找不到名称“JQueryPromise”。 节点模块/fullcalendar/dist/fullcalendar.d.ts(988,23):错误 TS2304:找不到名称“JQueryEventObject”。 节点模块/fullcalendar/dist/fullcalendar.d.ts(1401,70):错误 TS2304:找不到名称“JQueryAjaxSettings”。 节点模块/fullcalendar/dist/fullcalendar.d.ts(1603,50):错误 TS2304:找不到名称“JQueryPromise”。 节点模块/fullcalendar/dist/fullcalendar.d.ts(1623,50):错误 TS2304:找不到名称“JQueryPromise”。 节点模块/fullcalendar/dist/fullcalendar.d.ts(2588,50):错误 TS2304:找不到名称“JQueryPromise”

如何修复它? myindex.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');
  }

}
import { CalendarComponent } from 'ap-angular2-fullcalendar';
import { CalendarModule } from 'ap-angular2-fullcalendar';

@NgModule({
  declarations: [
    AppComponent,

    IndexComponent,

    CalendarComponent

  ],
  imports: [
    BrowserModule,
    NgbModule.forRoot(),
    AngularFontAwesomeModule,

    routes


  ],
应用程序模块.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');
  }

}
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>

问题出在ap-angular2-fullcalendar node_模块内的fullcalendar包中。 Fullcalendar已更新3.8.0,但您需要3.7.0。。。 我的解决办法是

步骤1:
npm安装fullcalendar@3.7.0--保存

步骤2:在package.json中写入/编辑“postinstall
到“rm-Rf./node_模块/app-angular2-fullcalendar/node_模块”

我找到了一些解决方案,现在它对我的工作更新为
npm安装fullcalendar@3.6.1

只需执行此操作-您可能正在使用Angular CLI:

npm i @types/fullcalendar -s

你没有打字,我也有同样的问题。我解决了将fullcalendar dependecie完全更新到3.6.1版的问题

npm安装--保存fullcalendar@3.6.1


安装后
npm安装fullcalendar@3.7.0--保存
我遇到问题


模块“fullcalendar”在angular 8中没有导出的成员“选项”

谢谢,先生,我安装了此
npm安装fullcalendar@3.6.1
现在是work@Ruslan科瓦尔丘克和我做的一样,但不工作。。。!