简体   繁体   English

Angular 5 --aot与Angular 5 --aot = false

[英]Angular 5 --aot Vs Angular 5 --aot=false

I use Angular 5.0.0 + rxjs ^5.5.2 我使用Angular 5.0.0 + rxjs ^ 5.5.2

When I use this command: ng serve --aot=false , my application is OK but when I use this command: ng serve --aot I have this error: 当我使用以下命令: ng serve --aot=false ,我的应用程序正常,但是当我使用以下命令: ng serve --aot出现以下错误:

core.js:1350 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'subscribe' of undefined
TypeError: Cannot read property 'subscribe' of undefined

I do not have any other messge. 我没有其他消息。 I can not copy/paste a part of my code because, I do not know where this comes from. 我无法复制/粘贴代码的一部分,因为我不知道这是从哪里来的。

If you have any question, I am happy you answer them. 如果您有任何疑问,很高兴您能回答。

EDIT 1: 编辑1:

full stack: 全栈:

webpack-internal:///../../../core/esm5/core.js:1546 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'subscribe' of undefined
TypeError: Cannot read property 'subscribe' of undefined
    at createDirectiveInstance (webpack-internal:///../../../core/esm5/core.js:12211)
    at createViewNodes (webpack-internal:///../../../core/esm5/core.js:13645)
    at callViewAction (webpack-internal:///../../../core/esm5/core.js:14077)
    at execComponentViewsAction (webpack-internal:///../../../core/esm5/core.js:13986)
    at createViewNodes (webpack-internal:///../../../core/esm5/core.js:13673)
    at callViewAction (webpack-internal:///../../../core/esm5/core.js:14077)
    at execComponentViewsAction (webpack-internal:///../../../core/esm5/core.js:13986)
    at createViewNodes (webpack-internal:///../../../core/esm5/core.js:13673)
    at createRootView (webpack-internal:///../../../core/esm5/core.js:13535)
    at callWithDebugContext (webpack-internal:///../../../core/esm5/core.js:14936)
    at createDirectiveInstance (webpack-internal:///../../../core/esm5/core.js:12211)
    at createViewNodes (webpack-internal:///../../../core/esm5/core.js:13645)
    at callViewAction (webpack-internal:///../../../core/esm5/core.js:14077)
    at execComponentViewsAction (webpack-internal:///../../../core/esm5/core.js:13986)
    at createViewNodes (webpack-internal:///../../../core/esm5/core.js:13673)
    at callViewAction (webpack-internal:///../../../core/esm5/core.js:14077)
    at execComponentViewsAction (webpack-internal:///../../../core/esm5/core.js:13986)
    at createViewNodes (webpack-internal:///../../../core/esm5/core.js:13673)
    at createRootView (webpack-internal:///../../../core/esm5/core.js:13535)
    at callWithDebugContext (webpack-internal:///../../../core/esm5/core.js:14936)
    at resolvePromise (webpack-internal:///../../../../zone.js/dist/zone.js:783)
    at resolvePromise (webpack-internal:///../../../../zone.js/dist/zone.js:754)
    at eval (webpack-internal:///../../../../zone.js/dist/zone.js:831)
    at ZoneDelegate.invokeTask (webpack-internal:///../../../../zone.js/dist/zone.js:424)
    at Object.onInvokeTask (webpack-internal:///../../../core/esm5/core.js:4816)
    at ZoneDelegate.invokeTask (webpack-internal:///../../../../zone.js/dist/zone.js:423)
    at Zone.runTask (webpack-internal:///../../../../zone.js/dist/zone.js:191)
    at drainMicroTaskQueue (webpack-internal:///../../../../zone.js/dist/zone.js:595)
    at ZoneTask.invokeTask [as invoke] (webpack-internal:///../../../../zone.js/dist/zone.js:502)
    at invokeTask (webpack-internal:///../../../../zone.js/dist/zone.js:1364)
defaultErrorLogger @ webpack-internal:///../../../core/esm5/core.js:1546

EDIT 2: 编辑2:

ng lint command result: ng lint命令结果:

ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/app-config.ts[8, 7]: comment must start with a space
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/app-config.ts[10, 20]: Type string trivially inferred from a string literal, remove type annota
tion
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/app-config.ts[11, 19]: Type string trivially inferred from a string literal, remove type annota
tion
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/app-config.ts[16, 20]: Type string trivially inferred from a string literal, remove type annota
tion
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/app-config.ts[34, 9]: misplaced 'else'
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/app-routing.module.ts[28, 1]: Exceeds maximum line length of 140
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/components/badge/badge.component.ts[3, 12]: The selector of the component "BadgeComponent" shou
ld have prefix "app" (https://angular.io/styleguide#style-02-07)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/components/legend/legend.component.ts[4, 13]: The selector of the component "LegendComponent" s
hould have prefix "app" (https://angular.io/styleguide#style-02-07)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/components/logo/logo.component.ts[9, 30]: Type string trivially inferred from a string literal,
 remove type annotation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/components/logo/logo.component.ts[3, 12]: The selector of the component "LogoComponent" should
have prefix "app" (https://angular.io/styleguide#style-02-07)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/directives/track_scroll/track_scroll.directive.ts[12, 40]: == should be ===
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/directives/track_scroll/track_scroll.directive.ts[4, 24]: The selector of the directive "TrackS
crollDirective" should have prefix "app" (https://angular.io/styleguide#style-02-08)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/home.component.ts[54, 13]: while statements must be braced
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/home.component.ts[23, 25]: Type boolean trivially inferred from a boolean literal, remove type
annotation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/home.component.ts[39, 36]: Type number trivially inferred from a number literal, remove type an
notation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/home.component.ts[40, 36]: Type number trivially inferred from a number literal, remove type an
notation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/home.component.ts[41, 22]: Type string trivially inferred from a string literal, remove type an
notation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/404/page-not-found.component.ts[5, 12]: The selector of the component "PageNotFoundCompon
ent" should have prefix "app" (https://angular.io/styleguide#style-02-07)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/customers/customers.component.ts[17, 14]: Type number trivially inferred from a number li
teral, remove type annotation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/customers/customers.component.ts[18, 17]: Type number trivially inferred from a number li
teral, remove type annotation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/customers/customers.component.ts[19, 22]: Type boolean trivially inferred from a boolean
literal, remove type annotation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/customers/customers.component.ts[20, 15]: Type boolean trivially inferred from a boolean
literal, remove type annotation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/customers/customers.component.ts[50, 17]: misplaced 'else'
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/customers/customers.component.ts[25, 13]: Identifier 'me' is never reassigned; use 'const
' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/customers/customers.component.ts[42, 17]: Identifier 'me' is never reassigned; use 'const
' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/customers/customers.component.ts[6, 12]: The selector of the component "CustomersComponen
t" should have prefix "app" (https://angular.io/styleguide#style-02-07)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/dashboard/dashboard.component.ts[4, 12]: The selector of the component "DashboardComponen
t" should have prefix "app" (https://angular.io/styleguide#style-02-07)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/employees/employees.component.ts[20, 9]: Forbidden 'var' keyword, use 'let' or 'const' in
stead
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/employees/employees.component.ts[34, 9]: Forbidden 'var' keyword, use 'let' or 'const' in
stead
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/employees/employees.component.ts[20, 13]: Identifier 'me' is never reassigned; use 'const
' instead of 'var'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/employees/employees.component.ts[34, 13]: Identifier 'me' is never reassigned; use 'const
' instead of 'var'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/employees/employees.component.ts[7, 15]: The selector of the component "EmployeesComponen
t" should have prefix "app" (https://angular.io/styleguide#style-02-07)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/login/login.component.ts[13, 12]: Type string trivially inferred from a string literal, r
emove type annotation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/login/login.component.ts[39, 21]: expected a 'break' before 'case'
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/login/login.component.ts[41, 21]: expected a 'break' before 'case'
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/login/login.component.ts[43, 21]: expected a 'break' before 'default'
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/login/login.component.ts[6, 15]: The selector of the component "LoginComponent" should ha
ve prefix "app" (https://angular.io/styleguide#style-02-07)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/logout/logout.component.ts[5, 15]: The selector of the component "LogoutComponent" should
 have prefix "app" (https://angular.io/styleguide#style-02-07)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/order_details/order_details.component.ts[17, 26]: Type boolean trivially inferred from a
boolean literal, remove type annotation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/order_details/order_details.component.ts[106, 9]: Forbidden 'var' keyword, use 'let' or '
const' instead
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/order_details/order_details.component.ts[106, 13]: Identifier 'me' is never reassigned; u
se 'const' instead of 'var'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/order_details/order_details.component.ts[8, 12]: The selector of the component "OrderDeta
ilsComponent" should have prefix "app" (https://angular.io/styleguide#style-02-07)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/order_stats/order_stats.component.ts[29, 9]: Forbidden 'var' keyword, use 'let' or 'const
' instead
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/order_stats/order_stats.component.ts[34, 9]: Forbidden 'var' keyword, use 'let' or 'const
' instead
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/order_stats/order_stats.component.ts[29, 13]: Identifier 'me' is never reassigned; use 'c
onst' instead of 'var'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/order_stats/order_stats.component.ts[34, 13]: Identifier 'me' is never reassigned; use 'c
onst' instead of 'var'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/order_stats/order_stats.component.ts[16, 23]: expected nospace before colon in property-d
eclaration
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/order_stats/order_stats.component.ts[9, 12]: The selector of the component "OrderStatsCom
ponent" should be named kebab-case and include dash (https://angular.io/styleguide#style-05-02)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/orders/orders.component.ts[19, 15]: Type boolean trivially inferred from a boolean litera
l, remove type annotation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/orders/orders.component.ts[23, 9]: Forbidden 'var' keyword, use 'let' or 'const' instead
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/orders/orders.component.ts[40, 9]: Forbidden 'var' keyword, use 'let' or 'const' instead
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/orders/orders.component.ts[23, 13]: Identifier 'me' is never reassigned; use 'const' inst
ead of 'var'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/orders/orders.component.ts[40, 13]: Identifier 'me' is never reassigned; use 'const' inst
ead of 'var'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/orders/orders.component.ts[41, 13]: Identifier 'legendColors' is never reassigned; use 'c
onst' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/orders/orders.component.ts[8, 12]: The selector of the component "OrdersComponent" should
 have prefix "app" (https://angular.io/styleguide#style-02-07)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/product_stats/product_stats.component.ts[9, 1]: space indentation expected
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/product_stats/product_stats.component.ts[10, 1]: space indentation expected
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/product_stats/product_stats.component.ts[22, 9]: Forbidden 'var' keyword, use 'let' or 'c
onst' instead
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/product_stats/product_stats.component.ts[27, 9]: Forbidden 'var' keyword, use 'let' or 'c
onst' instead
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/product_stats/product_stats.component.ts[22, 13]: Identifier 'me' is never reassigned; us
e 'const' instead of 'var'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/product_stats/product_stats.component.ts[27, 13]: Identifier 'me' is never reassigned; us
e 'const' instead of 'var'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/product_stats/product_stats.component.ts[9, 12]: The selector of the component "ProductSt
atsComponent" should be named kebab-case and include dash (https://angular.io/styleguide#style-05-02)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/pages/product_stats/product_stats.component.ts[21, 5]: Implement lifecycle hook interface OnIni
t for method ngOnInit in class ProductStatsComponent (https://angular.io/styleguide#style-09-01)
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/api-request.service.ts[27, 13]: Identifier 'headers' is never reassigned; use 'con
st' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/api-request.service.ts[28, 13]: Identifier 'token' is never reassigned; use 'const
' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/api-request.service.ts[54, 13]: Identifier 'me' is never reassigned; use 'const' i
nstead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/api-request.service.ts[55, 13]: Identifier 'requestOptions' is never reassigned; u
se 'const' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/api-request.service.ts[67, 13]: Identifier 'me' is never reassigned; use 'const' i
nstead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/api-request.service.ts[68, 13]: Identifier 'requestOptions' is never reassigned; u
se 'const' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/api-request.service.ts[80, 13]: Identifier 'me' is never reassigned; use 'const' i
nstead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/api-request.service.ts[81, 13]: Identifier 'requestOptions' is never reassigned; u
se 'const' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/api-request.service.ts[93, 13]: Identifier 'me' is never reassigned; use 'const' i
nstead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/api-request.service.ts[94, 13]: Identifier 'requestOptions' is never reassigned; u
se 'const' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/customer.service.ts[37, 1]: Exceeds maximum line length of 140
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/customer.service.ts[28, 25]: Identifier 'newRow' is never reassigned; use 'const'
instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/customer.service.ts[27, 21]: Identifier 'items' is never reassigned; use 'const' i
nstead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/customer.service.ts[34, 21]: Identifier 'returnObj' is never reassigned; use 'cons
t' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/customer.service.ts[18, 13]: Identifier 'me' is never reassigned; use 'const' inst
ead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/customer.service.ts[19, 13]: Identifier 'params' is never reassigned; use 'const'
instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/customer.service.ts[23, 13]: Identifier 'customerListSubject' is never reassigned;
 use 'const' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/employee.service.ts[3, 53]: This import is blacklisted, import a submodule instead

ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/employee.service.ts[17, 13]: Identifier 'me' is never reassigned; use 'const' inst
ead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/employee.service.ts[18, 13]: Identifier 'params' is never reassigned; use 'const'
instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/login.service.ts[19, 24]: Type string trivially inferred from a string literal, re
move type annotation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/login.service.ts[57, 17]: misplaced 'else'
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/login.service.ts[29, 13]: Identifier 'me' is never reassigned; use 'const' instead
 of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/login.service.ts[31, 13]: Identifier 'bodyData' is never reassigned; use 'const' i
nstead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/login.service.ts[35, 13]: Identifier 'loginDataSubject' is never reassigned; use '
const' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/order.service.ts[63, 1]: Exceeds maximum line length of 140
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/order.service.ts[30, 25]: Identifier 'newRow' is never reassigned; use 'const' ins
tead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/order.service.ts[29, 21]: Identifier 'returnObj' is never reassigned; use 'const'
instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/order.service.ts[22, 13]: Identifier 'me' is never reassigned; use 'const' instead
 of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/order.service.ts[23, 13]: Identifier 'params' is never reassigned; use 'const' ins
tead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/order.service.ts[26, 13]: Identifier 'orderListSubject' is never reassigned; use '
const' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/order.service.ts[56, 25]: Identifier 'newRow' is never reassigned; use 'const' ins
tead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/order.service.ts[55, 21]: Identifier 'returnObj' is never reassigned; use 'const'
instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/order.service.ts[47, 13]: Identifier 'me' is never reassigned; use 'const' instead
 of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/order.service.ts[48, 13]: Identifier 'params' is never reassigned; use 'const' ins
tead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/order.service.ts[52, 13]: Identifier 'orderDetailSubject' is never reassigned; use
 'const' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/product.service.ts[17, 11]: comment must start with a space
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/product.service.ts[27, 25]: Identifier 'newRow' is never reassigned; use 'const' i
nstead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/product.service.ts[26, 21]: Identifier 'returnObj' is never reassigned; use 'const
' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/product.service.ts[18, 13]: Identifier 'me' is never reassigned; use 'const' inste
ad of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/product.service.ts[19, 13]: Identifier 'params' is never reassigned; use 'const' i
nstead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/api/product.service.ts[23, 13]: Identifier 'productList' is never reassigned; use 'con
st' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/auth_guard.service.ts[16, 13]: Identifier 'url' is never reassigned; use 'const' inste
ad of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/user-info.service.ts[20, 27]: Type string trivially inferred from a string literal, re
move type annotation
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/user-info.service.ts[47, 9]: misplaced 'catch'
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/user-info.service.ts[43, 13]: misplaced 'else'
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/user-info.service.ts[40, 21]: Identifier 'userObj' is never reassigned; use 'const' in
stead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/user-info.service.ts[38, 17]: Identifier 'userInfoString' is never reassigned; use 'co
nst' instead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/user-info.service.ts[58, 13]: Identifier 'userObj' is never reassigned; use 'const' in
stead of 'let'.
ERROR: C:/workspace/POC/Angular-SpringBoot-REST-JWT-SGR/webui/src/app/services/user-info.service.ts[66, 13]: Identifier 'userObj' is never reassigned; use 'const' in
stead of 'let'.

some people down voted while there was a real bug in the ngx-datatable library: ngx-datatable库中存在真正的错误时,有些人投了反对票:

https://github.com/swimlane/ngx-datatable/issues/1114 and https://github.com/swimlane/ngx-datatable/issues/1104 https://github.com/swimlane/ngx-datatable/issues/1114https://github.com/swimlane/ngx-datatable/issues/1104

Problem present in version 11.0.3 and solve in version 11.0.4 版本11.0.3中存在问题并在版本11.0.4中解决

upgrade your pakage.json => 升级您的pakage.json =>

"@swimlane/ngx-datatable": "^11.0.4", “ @ swimlane / ngx-datatable”:“ ^ 11.0.4”,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM