mattlewis92 / angular-calendar

A flexible calendar component for angular 15.0+ that can display events on a month, week or day view.
https://mattlewis92.github.io/angular-calendar/
MIT License
2.73k stars 867 forks source link

webpack: Failed to compile. #241

Closed di3orlive closed 7 years ago

di3orlive commented 7 years ago

get this err after update (with AngularCli 1.0.6)

ERROR in D:/PROJECTS/xx/node_modules/calendar-utils/dist/calendarUtils.d.ts (20,41): ',' expected.
  ERROR in D:/PROJECTS/xx/node_modules/calendar-utils/dist/calendarUtils.d.ts (17,16): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/calendar-utils/dist/calendarUtils.d.ts (20,43): Type parameter name cannot be 'any'
ERROR in D:/PROJECTS/xx/node_modules/calendar-utils/dist/calendarUtils.d.ts (36,12): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/calendar-utils/dist/calendarUtils.d.ts (47,13): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/calendar-utils/dist/calendarUtils.d.ts (58,12): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/calendar-utils/dist/calendarUtils.d.ts (69,19): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/calendar-utils/dist/calendarUtils.d.ts (80,12): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/calendar-utils/dist/calendarUtils.d.ts (92,14): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/calendar-utils/dist/calendarUtils.d.ts (101,14): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/calendar-utils/dist/calendarUtils.d.ts (110,14): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/providers/calendarEventTitleFormatter.provider.d.ts (27,18): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/providers/calendarEventTitleFormatter.provider.d.ts (31,25): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/providers/calendarEventTitleFormatter.provider.d.ts (35,17): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/providers/calendarEventTitleFormatter.provider.d.ts (39,24): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/providers/calendarEventTitleFormatter.provider.d.ts (43,16): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/providers/calendarEventTitleFormatter.provider.d.ts (47,23): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/interfaces/calendarEventTimesChangedEvent.interface.d.ts (6,12): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/components/day/calendarDayView.component.d.ts (36,13): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/components/day/calendarDayView.component.d.ts (98,16): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/components/day/calendarDayView.component.d.ts (156,21): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/components/month/calendarMonthView.component.d.ts (27,13): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/components/month/calendarMonthView.component.d.ts (79,16): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/components/month/calendarMonthView.component.d.ts (124,31): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/components/month/calendarMonthView.component.d.ts (128,44): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/components/week/calendarWeekView.component.d.ts (33,13): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).
  ERROR in D:/PROJECTS/xx/node_modules/angular-calendar/dist/esm/src/components/week/calendarWeekView.component.d.ts (81,16): Generic type 'CalendarEvent<MetaType, any>' requires 2 type argument(s).

package.json

{
  "name": "project",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "hmr": "ng serve --hmr -e=prod",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^4.1.3",
    "@angular/common": "^4.0.0",
    "@angular/compiler": "^4.0.0",
    "@angular/core": "^4.0.0",
    "@angular/forms": "^4.0.0",
    "@angular/http": "^4.0.0",
    "@angular/platform-browser": "^4.0.0",
    "@angular/platform-browser-dynamic": "^4.0.0",
    "@angular/router": "^4.0.0",
    "angular-calendar": "^0.17.1",
    "core-js": "^2.4.1",
    "ngx-gallery": "^0.8.0",
    "rxjs": "^5.1.0",
    "zone.js": "^0.8.4"
  },
  "devDependencies": {
    "@angular/cli": "1.0.6",
    "@angular/compiler-cli": "^4.0.0",
    "@types/jasmine": "2.5.38",
    "@types/node": "~6.0.60",
    "codelyzer": "~2.0.0",
    "jasmine-core": "~2.5.2",
    "jasmine-spec-reporter": "~3.2.0",
    "karma": "~1.4.1",
    "karma-chrome-launcher": "~2.0.0",
    "karma-cli": "~1.0.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "karma-coverage-istanbul-reporter": "^0.2.0",
    "protractor": "~5.1.0",
    "ts-node": "~2.0.0",
    "tslint": "~4.5.0",
    "typescript": "^2.3.0"
  }
}
Numalama commented 7 years ago

AngularJS version 1.x is written in JavaScript. Its successor, Angular 2.x, is written using TypeScript.

di3orlive commented 7 years ago

@Numalama And how does this relate to this issue?

Numalama commented 7 years ago

Upgrade AngularCli.

But take a look here: https://github.com/mattlewis92/angular-bootstrap-calendar

Same calendar for AngularCLI 1.x I think

etwillbefine commented 7 years ago

Please see https://github.com/mattlewis92/angular-calendar/issues/221

di3orlive commented 7 years ago

@etwillbefine tnx just "npm install --save-dev typescript@latest" fix it