JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › Production Build Errors with smart-webcomponents-angular 8.0.6
Tagged: smart-webcomponents-angular
- This topic has 7 replies, 2 voices, and was last updated 3 years, 8 months ago by admin.
-
AuthorPosts
-
February 15, 2021 at 5:20 pm #101508anilmullamuriMember
Hi,
After integrating smart-pivot-table, smart-chart, smart-date-time-picker, smart-input into my angular 7 application, i am unable to do prod build.
Typescript version is 3.1.6.
Following is the error getting while doing prod build
ERROR in ./node_modules/smart-webcomponents-angular/fesm5/smart-webcomponents-angular-input.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
TypeError: Cannot read property ‘kind’ of undefined
at isAngularDecoratorMetadataExpression (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:245:35)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:70:21)
at visitNodes (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15788:30)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:16014:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15909:21)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15966:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15977:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15873:21)
ERROR in ./node_modules/smart-webcomponents-angular/fesm5/smart-webcomponents-angular-chart.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
TypeError: Cannot read property ‘kind’ of undefined
at isAngularDecoratorMetadataExpression (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:245:35)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:70:21)
at visitNodes (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15788:30)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:16014:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15909:21)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15966:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15977:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15873:21)
ERROR in ./node_modules/smart-webcomponents-angular/fesm5/smart-webcomponents-angular-pivottable.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
TypeError: Cannot read property ‘kind’ of undefined
at isAngularDecoratorMetadataExpression (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:245:35)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:70:21)
at visitNodes (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15788:30)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:16014:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15909:21)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15966:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15977:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15873:21)
ERROR in ./node_modules/smart-webcomponents-angular/fesm5/smart-webcomponents-angular-datetimepicker.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
TypeError: Cannot read property ‘kind’ of undefined
at isAngularDecoratorMetadataExpression (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:245:35)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:70:21)
at visitNodes (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15788:30)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:16014:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15909:21)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15966:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15977:24)
at checkNodeForDecorators (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:61:31)
at visitNode (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15779:24)
at Object.forEachChild (D:\Demo\Test\Test_workspace\TestUI\src\main\resources\content\node_modules\typescript\lib\typescript.js:15873:21)
Expecting quick response.
Thanks & regards,
Anil.February 15, 2021 at 6:34 pm #101509adminKeymasterHi,
The error seems to be caused because of the typescript version used in your app or a conflict with other lib in your package.json. In addition, the smart version used in your app is very old. We advice you to use the latest.
Regards,
Peter
Smart UI Team
Htmlelements.comFebruary 16, 2021 at 6:38 am #101510anilmullamuriMemberHi,
Thank you for quick response,
i have updated Smart version to 9.1.12 and regarding typescript version as we are using angular 7, we can’t go beyond 3.2.
Please let me know which version of angular and typescript will support smart 9.1.12.
I am getting same error after updating smart version.
Below is Package.json file
{
“name”: “Test”,
“version”: “0.0.0”,
“scripts”: {
“ng”: “ng”,
“start”: “ng serve”,
“build”: “npm run build && ng build –prod”,
“test”: “ng test”,
“lint”: “ng lint”,
“e2e”: “ng e2e”,
“del”: “del browserslist && del browserslist.cmd”
},
“private”: true,
“dependencies”: {
“@angular/animations”: “~7.1.0”,
“@angular/cdk”: “^11.2.0”,
“@angular/common”: “~7.1.0”,
“@angular/compiler”: “~7.1.0”,
“@angular/core”: “~7.1.0”,
“@angular/elements”: “^11.2.0”,
“@angular/forms”: “~7.1.0”,
“@angular/platform-browser”: “~7.1.0”,
“@angular/platform-browser-dynamic”: “~7.1.0”,
“@angular/router”: “~7.1.0”,
“core-js”: “^2.5.4”,
“jquery”: “^2.2.4”,
“jquery-contextmenu”: “^2.9.0”,
“ng2-charts”: “^1.6.0”,
“primeicons”: “^1.0.0”,
“primeng”: “^7.0.0”,
“rxjs”: “~6.3.3”,
“smart-webcomponents-angular”: “^9.1.12”,
“tslib”: “^1.14.1”,
“zone.js”: “~0.8.26”
},
“devDependencies”: {
“@angular-devkit/build-angular”: “^0.10.0”,
“@angular/cli”: “~7.1.1”,
“@angular/compiler-cli”: “~7.1.0”,
“@angular/language-service”: “~7.1.0”,
“@types/jasmine”: “~2.8.8”,
“@types/jasminewd2”: “~2.0.3”,
“@types/jquery”: “^2.0.46”,
“@types/node”: “~8.9.4”,
“codelyzer”: “~4.5.0”,
“jasmine-core”: “~2.99.1”,
“jasmine-spec-reporter”: “~4.2.1”,
“karma”: “~3.1.1”,
“karma-chrome-launcher”: “~2.2.0”,
“karma-coverage-istanbul-reporter”: “~2.0.1”,
“karma-jasmine”: “~1.1.2”,
“karma-jasmine-html-reporter”: “^0.2.2”,
“protractor”: “~5.4.0”,
“source-map-explorer”: “^2.0.0”,
“ts-node”: “~7.0.0”,
“tslint”: “~5.11.0”,
“typescript”: “~3.1.6”
}
}
Please suggest if any changes to work prod build.
Thanks,
Anil.February 16, 2021 at 8:07 am #101511adminKeymasterHi,
Smart UI requires angular 8+. For old versions of angular you can use jqwidgets-ng.
Regards,
Peter
Smart UI Team
Htmlelements.comFebruary 23, 2021 at 7:51 am #101545anilmullamuriMemberHi,
Can you please let me know which version of Smart UI will support Angular 7.
Thanks,
Anil.February 23, 2021 at 8:24 am #101546adminKeymasterHi Anil,
Smart UI supports Angular 8+. We are not planning to add support for old versions of Angular.
jQWidgets NG supports Angular 2+
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/March 1, 2021 at 9:24 am #101559anilmullamuriMemberHi,
please let me know if Smart UI 9.1.18 will support Angular 10.2.4 ? or maximum which version we can use for 9.1.18.
Thanks,
Anil.March 1, 2021 at 2:43 pm #101562adminKeymasterIt supports it.
Regards,
Peter
Smart UI Team
Htmlelements.com -
AuthorPosts
- You must be logged in to reply to this topic.