Closed RiceRiceBaby closed 1 year ago
Yes, I will attempt to reproduce. In the meantime, can you send me a copy of your package.json so that I can match your environment.
{ "name": "frontEnd", "version": "0.0.1-SNAPSHOT", "description": "Description for frontEnd", "private": true, "license": "UNLICENSED", "cacheDirectories": [ "node_modules" ], "dependencies": { "@angular/animations": "9.1.11", "@angular/common": "9.1.11", "@angular/compiler": "9.1.11", "@angular/core": "9.1.11", "@angular/forms": "9.1.11", "@angular/localize": "9.1.11", "@angular/platform-browser": "9.1.11", "@angular/platform-browser-dynamic": "9.1.11", "@angular/router": "9.1.11", "@fortawesome/angular-fontawesome": "^0.6.1", "@fortawesome/fontawesome-svg-core": "^1.2.28", "@fortawesome/free-solid-svg-icons": "^5.13.0", "@ng-bootstrap/ng-bootstrap": "^6.1.0", "@ng-select/ng-select": "^4.0.4", "@ngx-translate/core": "^11.0.1", "@ngx-translate/http-loader": "4.0.0", "@progress/kendo-angular-buttons": "^6.1.2", "@progress/kendo-angular-charts": "^5.2.0", "@progress/kendo-angular-common": "^2.0.1", "@progress/kendo-angular-dateinputs": "^5.2.0", "@progress/kendo-angular-dialog": "^5.0.1", "@progress/kendo-angular-dropdowns": "^5.3.0", "@progress/kendo-angular-excel-export": "^4.0.1", "@progress/kendo-angular-gauges": "^4.1.0", "@progress/kendo-angular-grid": "^5.1.2", "@progress/kendo-angular-icons": "^0.4.4", "@progress/kendo-angular-indicators": "^1.1.0", "@progress/kendo-angular-inputs": "^7.2.1", "@progress/kendo-angular-intl": "^3.1.1", "@progress/kendo-angular-l10n": "^3.0.1", "@progress/kendo-angular-label": "^3.0.3", "@progress/kendo-angular-layout": "^6.1.5", "@progress/kendo-angular-pager": "^3.0.2", "@progress/kendo-angular-pdf-export": "^3.0.1", "@progress/kendo-angular-popup": "^4.0.1", "@progress/kendo-angular-progressbar": "^2.0.1", "@progress/kendo-angular-tooltip": "^3.1.5", "@progress/kendo-angular-treeview": "^5.4.3", "@progress/kendo-angular-upload": "^7.1.3", "@progress/kendo-data-query": "^1.5.5", "@progress/kendo-drawing": "^1.10.1", "@progress/kendo-licensing": "^1.2.1", "@progress/kendo-svg-icons": "^0.1.2", "@progress/kendo-ui": "^2021.2.511", "@types/file-saver": "^2.0.1", "@types/lodash": "^4.14.155", "angular-animations": "0.0.10", "angular2-text-mask": "^9.0.0", "bootstrap": "4.5.2", "crypto-js": "^4.1.1", "file-saver": "^2.0.2", "font-awesome": "^4.7.0", "jquery": "^3.5.1", "moment": "^2.24.0", "ng-jhipster": "0.13.0", "ng-multiselect-dropdown": "^0.2.10", "ng2-currency-mask": "9.0.2", "ngx-cookie-service": "^3.0.4", "ngx-infinite-scroll": "8.0.2", "ngx-spinner": "^9.0.2", "ngx-toastr": "^12.1.0", "ngx-webstorage": "5.0.0", "popper.js": "^1.16.0", "rxjs": "^6.6.3", "swagger-ui-dist": "3.25.1", "text-mask-addons": "^3.8.0", "tslib": "1.11.1", "zone.js": "0.10.3" }, "devDependencies": { "@angular/cli": "9.1.3", "@angular/compiler-cli": "9.1.11", "@ngtools/webpack": "9.1.3", "@openapitools/openapi-generator-cli": "1.0.13-4.3.1", "@types/jest": "25.2.1", "@types/node": "13.13.4", "@typescript-eslint/eslint-plugin": "2.30.0", "@typescript-eslint/eslint-plugin-tslint": "2.30.0", "@typescript-eslint/parser": "2.30.0", "autoprefixer": "9.7.6", "base-href-webpack-plugin": "2.0.0", "browser-sync": "^2.27.9", "browser-sync-webpack-plugin": "2.2.2", "codelyzer": "5.2.2", "copy-webpack-plugin": "5.1.1", "css-loader": "3.5.3", "eslint": "6.8.0", "eslint-config-jhipster": "0.0.1", "eslint-config-prettier": "6.11.0", "eslint-loader": "4.0.2", "file-loader": "6.0.0", "friendly-errors-webpack-plugin": "1.7.0", "generator-jhipster": "6.9.1", "html-loader": "1.1.0", "html-webpack-plugin": "3.2.0", "husky": "4.2.5", "jest": "25.4.0", "jest-date-mock": "1.0.8", "jest-junit": "10.0.0", "jest-preset-angular": "8.1.3", "jest-sonar-reporter": "2.0.0", "lint-staged": "8.2.1", "mini-css-extract-plugin": "0.9.0", "moment-locales-webpack-plugin": "1.2.0", "optimize-css-assets-webpack-plugin": "5.0.3", "postcss-loader": "3.0.0", "prettier": "^2.0.5", "rimraf": "3.0.2", "sass": "1.26.5", "sass-loader": "^8.0.2", "simple-progress-webpack-plugin": "1.1.2", "style-loader": "1.2.0", "terser-webpack-plugin": "2.3.6", "thread-loader": "2.1.3", "to-string-loader": "1.1.6", "ts-loader": "7.0.1", "tslint": "6.1.2", "typescript": "3.8.3", "underscore": "^1.13.1", "webpack": "4.43.0", "webpack-bundle-analyzer": "3.7.0", "webpack-cli": "3.3.11", "webpack-dev-server": "^3.11.0", "webpack-merge": "4.2.2", "webpack-notifier": "^1.14.1", "workbox-webpack-plugin": "5.1.3", "write-file-webpack-plugin": "4.5.1" }, "engines": { "node": ">=12.16.1" }, "scripts": { "prettier:format": "prettier --write \"{,src/*/}.{md,json,ts,css,scss,yml}\"", "lint": "eslint . --ext .js,.ts", "lint:fix": "npm run lint -- --fix", "ngc": "ngc -p tsconfig.app.json", "cleanup": "rimraf build/resources/main/static/ build/resources/main/aot", "clean-www": "rimraf build/resources/main/static/app/{src,build/}", "start": "npm run webpack:dev", "start-tls": "npm run webpack:dev -- --env.tls", "serve": "npm run start", "build": "npm run webpack:prod", "test": "npm run lint && jest --coverage --logHeapUsage -w=2 --config src/test/javascript/jest.conf.js", "test:watch": "npm run test -- --watch", "webpack:dev": "npm run webpack-dev-server -- --config webpack/webpack.dev.js --inline --hot --port=9060 --watch-content-base --env.stats=minimal", "webpack:dev-verbose": "npm run webpack-dev-server -- --config webpack/webpack.dev.js --inline --hot --port=9060 --watch-content-base --profile --progress --env.stats=normal", "webpack:build:main": "npm run webpack -- --config webpack/webpack.dev.js --env.stats=minimal", "webpack:build": "npm run cleanup && npm run webpack:build:main", "webpack:prod:main": "npm run webpack -- --config webpack/webpack.prod.js --profile", "webpack:prod": "npm run cleanup && npm run webpack:prod:main && npm run clean-www", "webpack:test": "npm run test", "webpack-dev-server": "node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js", "webpack": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js" }, "jestSonar": { "reportPath": "build/test-results/jest", "reportFile": "TESTS-results-sonar.xml" } }
Appears to work fine when including ng-speed-test@^2.3.2
in the dependency array
Is this api still supported? I cannot get it to work on Angular 9+. I'm getting the following error:
Compiling ng-speed-test : module as esm5 Warning: Invalid constructor parameter decorator in /Users/562059/Documents/new-gateway/node_modules/ng-speed-test/fesm2015/ng-speed-test.js: () => [] Error: Error on worker #1: Error: getInternalNameOfClass() called on a non-ES5 class: expected SpeedTestService to have an inner class declaration at Esm5ReflectionHost.getInternalNameOfClass (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/ngcc/src/host/esm5_host.js:88:23) at DelegatingReflectionHost.getInternalNameOfClass (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/ngcc/src/host/delegating_host.js:89:34) at extractInjectableMetadata (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/src/ngtsc/annotations/src/injectable.js:125:69) at InjectableDecoratorHandler.analyze (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/src/ngtsc/annotations/src/injectable.js:66:24) at NgccTraitCompiler.TraitCompiler.analyzeTrait (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/src/ngtsc/transform/src/compilation.js:345:40) at analyze (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/src/ngtsc/transform/src/compilation.js:297:58) at _loop_1 (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/src/ngtsc/transform/src/compilation.js:319:21) at NgccTraitCompiler.TraitCompiler.analyzeClass (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/src/ngtsc/transform/src/compilation.js:325:35) at NgccTraitCompiler.analyzeFile (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/ngcc/src/analysis/ngcc_trait_compiler.js:47:26) at DecorationAnalyzer.analyzeProgram (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/ngcc/src/analysis/decoration_analyzer.js:134:39) at ClusterMaster.onWorkerMessage (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:194:27) at /Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:54:95 at ClusterMaster. (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:292:57)
at step (/Users/562059/Documents/new-gateway/node_modules/tslib/tslib.js:139:27)
at Object.next (/Users/562059/Documents/new-gateway/node_modules/tslib/tslib.js:120:57)
at /Users/562059/Documents/new-gateway/node_modules/tslib/tslib.js:113:75
at new Promise ()
at Object.__awaiter (/Users/562059/Documents/new-gateway/node_modules/tslib/tslib.js:109:16)
at EventEmitter. (/Users/562059/Documents/new-gateway/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:286:32)
at EventEmitter.emit (events.js:315:20)
/Users/562059/Documents/new-gateway/node_modules/webpack-cli/bin/cli.js:281
throw err;