Build fails for Mirage 9.0.1

Post Reply
djagercd
Posts: 5
Joined: 07 Aug 2020, 11:30

15 Oct 2020, 13:44

I have downloaded Mirage 9.0.1 and done the yarn install. When I do a yarn build I get the following error:

Code: Select all

ERROR in node_modules/@fullcalendar/daygrid/main.d.ts:1:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: SimpleDayGrid, DayGridSlicer, DayGrid, DayGridSeg, AbstractDayGridView, DayGridView, buildBasicDayTable, DayBgRow, _default, default, Popover, DayGridEventRenderer, DayTile, DayTileEventRenderer, SimpleDayGridEventRenderer

1 declare module "@fullcalendar/daygrid/DayGridDateProfileGenerator" {
  ~~~~~~~

  node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:5:1
    5 declare module '@fullcalendar/daygrid' {
      ~~~~~~~
    Conflicts are in this file.
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:5:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: SimpleDayGrid, DayGridSlicer, DayGrid, DayGridSeg, AbstractDayGridView, DayGridView, buildBasicDayTable, DayBgRow, _default, default, Popover, DayGridEventRenderer, DayTile, DayTileEventRenderer, SimpleDayGridEventRenderer

5 declare module '@fullcalendar/daygrid' {
  ~~~~~~~

  node_modules/@fullcalendar/daygrid/main.d.ts:1:1
    1 declare module "@fullcalendar/daygrid/DayGridDateProfileGenerator" {
      ~~~~~~~
    Conflicts are in this file.
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:37:9 - error TS2416: Property 'render' in type 'SimpleDayGrid' is not assignable to the same property in base type 'DateComponent<SimpleDayGridProps>'.
  Type '(props: SimpleDayGridProps, context: ComponentContext) => void' is not assignable to type '(props: SimpleDayGridProps) => void'.

37         render(props: SimpleDayGridProps, context: ComponentContext): void;
           ~~~~~~
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:52:9 - error TS2717: Subsequent property declarations must have the same type.  Property 'renderNumberIntroHtml' must be of type '(row: number, dayGrid: DayGrid) => string', but here has type '(row: number, dayGrid: DayGrid) => string'.

52         renderNumberIntroHtml: (row: number, dayGrid: DayGrid) => string;
           ~~~~~~~~~~~~~~~~~~~~~

  node_modules/@fullcalendar/daygrid/main.d.ts:158:9
    158         renderNumberIntroHtml: (row: number, dayGrid: DayGrid) => string;
                ~~~~~~~~~~~~~~~~~~~~~
    'renderNumberIntroHtml' was also declared here.
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:94:9 - error TS2416: Property 'render' in type 'DayGrid' is not assignable to the same property in base type 'DateComponent<DayGridProps>'.
  Type '(props: DayGridProps, context: ComponentContext) => void' is not assignable to type '(props: DayGridProps) => void'.

94         render(props: DayGridProps, context: ComponentContext): void;
           ~~~~~~
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:160:9 - error TS2416: Property 'render' in type 'AbstractDayGridView' is not assignable to the same property in base type 'View'.
  Type '(props: ViewProps, context: ComponentContext) => void' is not assignable to type '(props: ViewProps) => void'.

160         render(props: ViewProps, context: ComponentContext): void;
            ~~~~~~
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:194:9 - 1merror TS2416: Property 'render' in type 'DayGridView' is not assignable to the same property in base type 'DayGridView'.
  Type '(props: ViewProps, context: ComponentContext) => void' is not assignable to type '(props: ViewProps) => void'.

194         render(props: ViewProps, context: ComponentContext): void;
            ~~~~~~
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:289:9 - error TS2416: Property 'render' in type 'DayTile' is not assignable to the same property in base type 'DateComponent<DayTileProps>'.
  Type '(props: DayTileProps, context: ComponentContext) => void' is not assignable to type '(props: DayTileProps) => void'.

289         render(props: DayTileProps, context: ComponentContext): void;
            ~~~~~~

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I have made no changes to the package.json


Versions:
node - 12.18.1
yarn - 1.22.5

mert.sincan
Posts: 4352
Joined: 29 Jun 2013, 12:38

16 Oct 2020, 04:50

Hi,

Does 'npm install' work? Also, which PrimeNg version are you using?

Best Regards,

djagercd
Posts: 5
Joined: 07 Aug 2020, 11:30

16 Oct 2020, 07:16

The original download has primeng 9.0.2. Yarn install works fine. Based on another post I have updated to angular 9.1.0 and primeng 9.0.5.

Still does not work.

mert.sincan
Posts: 4352
Joined: 29 Jun 2013, 12:38

19 Oct 2020, 10:54

Hi,

Thanks a lot for the update! This seems to be a problem with importing the fullCalendar. As you know, the Schedule component uses the FullCalendar API, and with the update of this API there have been a lot of changes in its major versions. What FullCalendar version are you using? @merve and @yigit Could you please check this issue?

Best Regards,

yigitfindikli
Posts: 401
Joined: 08 Aug 2018, 14:09

19 Oct 2020, 11:12

djagercd wrote:
15 Oct 2020, 13:44
I have downloaded Mirage 9.0.1 and done the yarn install. When I do a yarn build I get the following error:

Code: Select all

ERROR in node_modules/@fullcalendar/daygrid/main.d.ts:1:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: SimpleDayGrid, DayGridSlicer, DayGrid, DayGridSeg, AbstractDayGridView, DayGridView, buildBasicDayTable, DayBgRow, _default, default, Popover, DayGridEventRenderer, DayTile, DayTileEventRenderer, SimpleDayGridEventRenderer

1 declare module "@fullcalendar/daygrid/DayGridDateProfileGenerator" {
  ~~~~~~~

  node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:5:1
    5 declare module '@fullcalendar/daygrid' {
      ~~~~~~~
    Conflicts are in this file.
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:5:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: SimpleDayGrid, DayGridSlicer, DayGrid, DayGridSeg, AbstractDayGridView, DayGridView, buildBasicDayTable, DayBgRow, _default, default, Popover, DayGridEventRenderer, DayTile, DayTileEventRenderer, SimpleDayGridEventRenderer

5 declare module '@fullcalendar/daygrid' {
  ~~~~~~~

  node_modules/@fullcalendar/daygrid/main.d.ts:1:1
    1 declare module "@fullcalendar/daygrid/DayGridDateProfileGenerator" {
      ~~~~~~~
    Conflicts are in this file.
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:37:9 - error TS2416: Property 'render' in type 'SimpleDayGrid' is not assignable to the same property in base type 'DateComponent<SimpleDayGridProps>'.
  Type '(props: SimpleDayGridProps, context: ComponentContext) => void' is not assignable to type '(props: SimpleDayGridProps) => void'.

37         render(props: SimpleDayGridProps, context: ComponentContext): void;
           ~~~~~~
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:52:9 - error TS2717: Subsequent property declarations must have the same type.  Property 'renderNumberIntroHtml' must be of type '(row: number, dayGrid: DayGrid) => string', but here has type '(row: number, dayGrid: DayGrid) => string'.

52         renderNumberIntroHtml: (row: number, dayGrid: DayGrid) => string;
           ~~~~~~~~~~~~~~~~~~~~~

  node_modules/@fullcalendar/daygrid/main.d.ts:158:9
    158         renderNumberIntroHtml: (row: number, dayGrid: DayGrid) => string;
                ~~~~~~~~~~~~~~~~~~~~~
    'renderNumberIntroHtml' was also declared here.
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:94:9 - error TS2416: Property 'render' in type 'DayGrid' is not assignable to the same property in base type 'DateComponent<DayGridProps>'.
  Type '(props: DayGridProps, context: ComponentContext) => void' is not assignable to type '(props: DayGridProps) => void'.

94         render(props: DayGridProps, context: ComponentContext): void;
           ~~~~~~
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:160:9 - error TS2416: Property 'render' in type 'AbstractDayGridView' is not assignable to the same property in base type 'View'.
  Type '(props: ViewProps, context: ComponentContext) => void' is not assignable to type '(props: ViewProps) => void'.

160         render(props: ViewProps, context: ComponentContext): void;
            ~~~~~~
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:194:9 - 1merror TS2416: Property 'render' in type 'DayGridView' is not assignable to the same property in base type 'DayGridView'.
  Type '(props: ViewProps, context: ComponentContext) => void' is not assignable to type '(props: ViewProps) => void'.

194         render(props: ViewProps, context: ComponentContext): void;
            ~~~~~~
node_modules/@fullcalendar/timegrid/node_modules/@fullcalendar/daygrid/main.d.ts:289:9 - error TS2416: Property 'render' in type 'DayTile' is not assignable to the same property in base type 'DateComponent<DayTileProps>'.
  Type '(props: DayTileProps, context: ComponentContext) => void' is not assignable to type '(props: DayTileProps) => void'.

289         render(props: DayTileProps, context: ComponentContext): void;
            ~~~~~~

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I have made no changes to the package.json


Versions:
node - 12.18.1
yarn - 1.22.5
Hi @djagercd,

Could you please share your package.json with us?

djagercd
Posts: 5
Joined: 07 Aug 2020, 11:30

20 Oct 2020, 09:39

Please see attached package.json

Code: Select all

{
    "name": "mirage",
    "version": "9.0.1",
    "scripts": {
        "ng": "ng",
        "start": "ng serve",
        "build": "ng build",
        "test": "ng test",
        "lint": "ng lint",
        "e2e": "ng e2e"
    },
    "private": true,
    "dependencies": {
        "@angular/animations": "9.0.4",
        "@angular/cdk": "9.1.0",
        "@angular/common": "9.0.4",
        "@angular/compiler": "9.0.4",
        "@angular/core": "9.0.4",
        "@angular/forms": "9.0.4",
        "@angular/platform-browser": "9.0.4",
        "@angular/platform-browser-dynamic": "9.0.4",
        "@angular/router": "9.0.4",
        "@fullcalendar/core": "4.0.2",
        "@fullcalendar/daygrid": "4.0.1",
        "@fullcalendar/interaction": "4.0.2",
        "@fullcalendar/timegrid": "4.0.1",
        "chart.js": "2.7.3",
        "intl": "1.2.5",
        "primeng": "9.0.2",
        "primeflex": "1.0.0",
        "prismjs": "1.15.0",
        "quill": "1.1.8",
        "rxjs": "6.5.4",
        "web-animations-js": "github:angular/web-animations-js#release_pr208",
        "zone.js": "0.10.2",
        "primeicons": "2.0.0"
    },
    "devDependencies": {
        "@angular-devkit/build-angular": "0.900.4",
        "@angular/compiler-cli": "9.0.4",
        "@angular/cli": "9.0.4",
        "@angular/language-service": "9.0.4",
        "@types/node": "12.12.29",
        "@types/jasmine": "3.5.7",
        "@types/jasminewd2": "2.0.8",
        "codelyzer": "5.2.1",
        "jasmine-core": "3.5.0",
        "jasmine-spec-reporter": "4.2.1",
        "karma": "4.3.0",
        "karma-chrome-launcher": "3.1.0",
        "karma-coverage-istanbul-reporter": "2.1.1",
        "karma-jasmine": "2.0.1",
        "karma-jasmine-html-reporter": "1.5.2",
        "protractor": "5.4.3",
        "ts-node": "8.3.0",
        "tslint": "5.18.0",
        "typescript": "3.7.5"
    }
} 

yigitfindikli
Posts: 401
Joined: 08 Aug 2018, 14:09

20 Oct 2020, 10:55

djagercd wrote:
20 Oct 2020, 09:39
Please see attached package.json

Code: Select all

{
    "name": "mirage",
    "version": "9.0.1",
    "scripts": {
        "ng": "ng",
        "start": "ng serve",
        "build": "ng build",
        "test": "ng test",
        "lint": "ng lint",
        "e2e": "ng e2e"
    },
    "private": true,
    "dependencies": {
        "@angular/animations": "9.0.4",
        "@angular/cdk": "9.1.0",
        "@angular/common": "9.0.4",
        "@angular/compiler": "9.0.4",
        "@angular/core": "9.0.4",
        "@angular/forms": "9.0.4",
        "@angular/platform-browser": "9.0.4",
        "@angular/platform-browser-dynamic": "9.0.4",
        "@angular/router": "9.0.4",
        "@fullcalendar/core": "4.0.2",
        "@fullcalendar/daygrid": "4.0.1",
        "@fullcalendar/interaction": "4.0.2",
        "@fullcalendar/timegrid": "4.0.1",
        "chart.js": "2.7.3",
        "intl": "1.2.5",
        "primeng": "9.0.2",
        "primeflex": "1.0.0",
        "prismjs": "1.15.0",
        "quill": "1.1.8",
        "rxjs": "6.5.4",
        "web-animations-js": "github:angular/web-animations-js#release_pr208",
        "zone.js": "0.10.2",
        "primeicons": "2.0.0"
    },
    "devDependencies": {
        "@angular-devkit/build-angular": "0.900.4",
        "@angular/compiler-cli": "9.0.4",
        "@angular/cli": "9.0.4",
        "@angular/language-service": "9.0.4",
        "@types/node": "12.12.29",
        "@types/jasmine": "3.5.7",
        "@types/jasminewd2": "2.0.8",
        "codelyzer": "5.2.1",
        "jasmine-core": "3.5.0",
        "jasmine-spec-reporter": "4.2.1",
        "karma": "4.3.0",
        "karma-chrome-launcher": "3.1.0",
        "karma-coverage-istanbul-reporter": "2.1.1",
        "karma-jasmine": "2.0.1",
        "karma-jasmine-html-reporter": "1.5.2",
        "protractor": "5.4.3",
        "ts-node": "8.3.0",
        "tslint": "5.18.0",
        "typescript": "3.7.5"
    }
} 
Thanks for package.json. I'll check and get back to you.

yigitfindikli
Posts: 401
Joined: 08 Aug 2018, 14:09

20 Oct 2020, 11:16

I couldn't replicate it using v9.0.2 v9.0.6 and 9.1.0 with yarn install. What is your yarn version?

Post Reply

Return to “Mirage - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: oberthurcp and 1 guest