JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums General Discussions Production Build Errors with smart-webcomponents-angular 8.0.6

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #101508

    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.

    #101509
    admin
    Keymaster

    Hi,
    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.com

    #101510

    Hi,
    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.

    #101511
    admin
    Keymaster

    Hi,
    Smart UI requires angular 8+. For old versions of angular you can use jqwidgets-ng.
    Regards,
    Peter
    Smart UI Team
    Htmlelements.com

    #101545

    Hi,
    Can you please let me know which version of Smart UI will support Angular 7.
    Thanks,
    Anil.

    #101546
    admin
    Keymaster

    Hi 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/

    #101559

    Hi,
    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.

    #101562
    admin
    Keymaster

    It supports it.
    Regards,
    Peter
    Smart UI Team
    Htmlelements.com

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.