eolinker / apinto-dashboard

Dashboard for Apinto
https://www.apinto.com
97 stars 28 forks source link

help request: 前端编译失败 #23

Closed luoyger closed 9 months ago

luoyger commented 9 months ago

Description

编译时前端出现错误,编译命令:./scripts/build.sh ./out all

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:62:3 - error NG8002: Can't bind to 'nzDraggable' since it isn't a known property of 'eo-ng-table'.
1. If 'eo-ng-table' is an Angular component and it has 'nzDraggable' input, then verify that it is part of this module.
2. If 'eo-ng-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

62   [nzDraggable]="nzDraggable"
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:63:3 - error NG8002: Can't bind to 'nzDragCheck' since it isn't a known property of 'eo-ng-table'.
1. If 'eo-ng-table' is an Angular component and it has 'nzDragCheck' input, then verify that it is part of this module.
2. If 'eo-ng-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

63   [nzDragCheck]="nzDragCheck"
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:66:3 - error NG8002: Can't bind to 'nzLoading' since it isn't a known property of 'eo-ng-table'.
1. If 'eo-ng-table' is an Angular component and it has 'nzLoading' input, then verify that it is part of this module.
2. If 'eo-ng-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

66   [nzLoading]="nzLoading"
     ~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:67:3 - error NG8002: Can't bind to 'nzLoadingIndicator' since it isn't a known property of 'eo-ng-table'.
1. If 'eo-ng-table' is an Angular component and it has 'nzLoadingIndicator' input, then verify that it is part of this module.
2. If 'eo-ng-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

67   [nzLoadingIndicator]="nzLoadingIndicator"
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:68:3 - error NG8002: Can't bind to 'nzVirtualMaxItems' since it isn't a known property of 'eo-ng-table'.
1. If 'eo-ng-table' is an Angular component and it has 'nzVirtualMaxItems' input, then verify that it is part of this module.
2. If 'eo-ng-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

68   [nzVirtualMaxItems]="nzVirtualMaxItems"
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:76:5 - error NG8002: Can't bind to 'nzTooltipTitle' since it isn't a known property of 'span'.

76     [nzTooltipTitle]="item.tooltip || ''"
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:77:5 - error NG8002: Can't bind to 'nzTooltipTitleContext' since it isn't a known property of 'span'.

77     [nzTooltipTitleContext]="item"
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:78:5 - error NG8002: Can't bind to 'nzTooltipVisible' since it isn't a known property of 'span'.

78     [nzTooltipVisible]="item.tooltipVisible || false"
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:79:5 - error NG8002: Can't bind to 'nzTooltipTrigger' since it isn't a known property of 'span'.

79     [nzTooltipTrigger]="item.tooltip ? item.tooltipTrigger || 'hover' : null"
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:92:7 - error NG8002: Can't bind to 'nzTooltipTitle' since it isn't a known property of 'span'.

 92       [nzTooltipTitle]="
          ~~~~~~~~~~~~~~~~~~
 93         rowItem.json
    ~~~~~~~~~~~~~~~~~~~~
... 
103               (rowItem.keySuffix || '')
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104       "
    ~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:105:7 - error NG8002: Can't bind to 'nzTooltipTitleContext' since it isn't a known property of 'span'.

105       [nzTooltipTitleContext]="{ rowItem: rowItem, item: item }"
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:106:7 - error NG8002: Can't bind to 'nzTooltipVisible' since it isn't a known property of 'span'.

106       [nzTooltipVisible]="rowItem.tooltipVisible || false"
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:107:7 - error NG8002: Can't bind to 'nzTooltipTrigger' since it isn't a known property of 'span'.

107       [nzTooltipTrigger]="rowItem.tooltipTrigger || 'hover'"
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:108:7 - error NG8002: Can't bind to 'nzTooltipOverlayClassName' since it isn't a known property of 'span'.

108       [nzTooltipOverlayClassName]="rowItem.json ? 'tooltip-json' : ''"
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

Error: projects/eo-ng-apinto-table/src/lib/table/table.component.html:122:7 - error NG8002: Can't bind to 'copyText' since it isn't a known property of 'span'.

122       [copyText]="
          ~~~~~~~~~~~~
123         (rowItem.keyPrefix || '') +
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... 
125         (rowItem.keySuffix || '')
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
126       "
    ~~~~~~~

  projects/eo-ng-apinto-table/src/lib/table/table.component.ts:9:16
    9   templateUrl: './table.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component TableComponent.

 ELIFECYCLE  Command failed with exit code 1.

Environment

Dot-Liu commented 9 months ago

node版本是多少呢?

luoyger commented 9 months ago

node版本是多少呢?

node -v v18.16.0

npm -v 9.5.1

pnpm -v 8.1.1

maggieyyy commented 9 months ago

可以尝试删除frontend文件夹内的.angular和node_modules,然后重新编译,可以注意yarn install --registry https://registry.npmmirror.com --legacy-peer-deps 这一步骤是否有报错,前端编译失败大概率是这一步的依赖包没有装好

luoyger commented 9 months ago

可以尝试删除frontend文件夹内的.angular和node_modules,然后重新编译,可以注意yarn install --registry https://registry.npmmirror.com --legacy-peer-deps 这一步骤是否有报错,前端编译失败大概率是这一步的依赖包没有装好

谢谢,经过反复的删除node_modules和编译,有可以编译成功的时候,偶尔也会出现编译失败,需要删除后重试。