BMW-InnovationLab / BMW-Labeltool-Lite

This repository provides you with an easy-to-use labeling tool for State-of-the-art Deep Learning training purposes. It supports Auto-Labeling.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build error during template compile of 'AppModule'

juetho opened this issue · comments

commented

I'm getting an build error with "docker-compose up" on Ubuntu 22.04.2 LTS and was not able to solve it.
Any help would be greatly appreciated.

:~/BMW-Labeltool-Lite$ docker-compose up
Building labeltool-lite-frontend
Step 1/8 : FROM node:14.18.2 as builder
14.18.2: Pulling from library/node
6a56b4def9c4: Already exists
ee0a7240797a: Already exists
2fbb8704bdb1: Already exists
737a610bfdda: Already exists
029c634f1608: Already exists
51d95cbd47b7: Already exists
e8cc70e440e3: Already exists
10a7bc6468e8: Already exists
c746d313f477: Already exists
Digest: sha256:e5c6aac226819f88d6431a56f502972d323d052b1b6108094ba7e6b07154a542
Status: Downloaded newer image for node:14.18.2
---> b55951795ffb
Step 2/8 : WORKDIR /src/app
---> Running in f0cd8fcc9855
Removing intermediate container f0cd8fcc9855
---> b1ad9ec3d6d4
Step 3/8 : COPY ./code ./
---> b6073e4c2283
Step 4/8 : RUN yarn install && yarn build:prod
---> Running in f1f557184a4d
yarn install v1.22.15
info No lockfile found.
[1/4] Resolving packages...
warning @microsoft/signalr > request@2.88.2: request has been deprecated, see request/request#3142
warning @microsoft/signalr > request > har-validator@5.1.5: this library is no longer supported
warning @microsoft/signalr > request > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
warning @stoplight/prism-cli > @stoplight/prism-http > json-schema-faker > json-schema-ref-parser@6.1.0: Please switch to @apidevtools/json-schema-ref-parser
warning @stoplight/prism-cli > @stoplight/prism-http > @stoplight/http-spec > postman-collection > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
warning @stoplight/prism-cli > @stoplight/prism-http > @stoplight/http-spec > json-schema-generator > request@2.88.2: request has been deprecated, see request/request#3142
warning messageformat@2.3.0: Package renamed as '@messageformat/core', see messageformat.github.io for more details. 'messageformat@4' will eventually provide a polyfill for Intl.MessageFormat, once it's been defined by Unicode & ECMA.
warning node-sass > request@2.88.2: request has been deprecated, see request/request#3142
warning node-sass > node-gyp > request@2.88.2: request has been deprecated, see request/request#3142
warning node-sass > node-gyp > tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
warning @angular-builders/jest > jest-preset-angular > jest-environment-jsdom-thirteen > jsdom > request@2.88.2: request has been deprecated, see request/request#3142
warning @angular-builders/jest > jest-preset-angular > jest-environment-jsdom-thirteen > jsdom > request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning @angular-builders/jest > jest-preset-angular > jest-environment-jsdom-thirteen > jsdom > w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
warning @angular-builders/jest > jest-preset-angular > jest-environment-jsdom-thirteen > jest-util > @jest/fake-timers > jest-message-util > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning @angular-builders/jest > jest-preset-angular > jest-environment-jsdom-thirteen > jest-util > @jest/fake-timers > jest-message-util > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning @angular-builders/jest > jest-preset-angular > jest-environment-jsdom-thirteen > jest-util > @jest/fake-timers > jest-message-util > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning @angular-builders/jest > jest-preset-angular > jest-environment-jsdom-thirteen > jest-util > @jest/fake-timers > jest-message-util > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning @angular-devkit/build-angular > core-js@3.1.4: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning @angular-devkit/build-angular > less > request@2.88.2: request has been deprecated, see request/request#3142
warning @angular-devkit/build-angular > webpack-dev-server > chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
warning @angular-devkit/build-angular > webpack-dev-server > chokidar > fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
warning @angular-devkit/build-angular > copy-webpack-plugin > webpack-log > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
warning @angular-devkit/build-angular > webpack-dev-server > sockjs > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
warning @angular-devkit/build-angular > @angular-devkit/core > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
warning @angular-devkit/build-angular > webpack-dev-server > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning @angular-devkit/build-angular > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
warning @angular-devkit/build-angular > istanbul-instrumenter-loader > istanbul-lib-instrument > babel-generator > babel-runtime > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning @angular/cli > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
warning @angular/cli > ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
warning @angular/cli > read-package-tree@5.3.1: The functionality that this package provided is now in @npmcli/arborist
warning @angular/cli > universal-analytics > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
warning @angular/cli > universal-analytics > request@2.88.2: request has been deprecated, see request/request#3142
warning @angular/cli > @schematics/update@0.803.29: This was an internal-only Angular package up through Angular v11 which is no longer used or maintained. Upgrade Angular to v12+ to remove this dependency.
warning @angular/cli > @schematics/update > ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
warning @angular/cli > read-package-tree > readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
warning @angular/cli > pacote > make-fetch-happen > node-fetch-npm@2.0.4: This module is not used anymore, npm uses minipass-fetch for its fetch implementation now
warning @angular/compiler-cli > chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
warning @angular/compiler-cli > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
warning @biesbjerg/ngx-translate-extract > chalk@2.0.1: Please upgrade to Chalk 2.1.0 - template literals in this version (2.0.1) are quite buggy.
warning @biesbjerg/ngx-translate-extract > mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning @biesbjerg/ngx-translate-extract > flat@2.0.1: Fixed a prototype pollution security issue in 2.0.1, please upgrade to ^2.0.2 or ^5.0.1.
warning cypress > debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
warning cypress > request@2.88.0: request has been deprecated, see request/request#3142
warning cypress > request > har-validator@5.1.5: this library is no longer supported
warning cypress > request > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
warning cypress > extract-zip > mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning cypress-image-snapshot@3.1.2: broken deps
warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see request/request#3142
warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
warning jest > jest-cli > @jest/core > jest-haste-map > fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()
warning jest > jest-cli > @jest/core > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning stylelint > postcss-markdown > remark > remark-parse > trim@0.0.1: Use String.prototype.trim() instead
warning stylelint > postcss-markdown > remark > unified > @types/vfile > @types/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
warning wait-on > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning wait-on > request@2.88.2: request has been deprecated, see request/request#3142
warning wait-on > @hapi/joi@15.1.1: Switch to 'npm install joi'
warning wait-on > @hapi/joi > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning wait-on > @hapi/joi > @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
warning wait-on > @hapi/joi > @hapi/topo > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning wait-on > @hapi/joi > @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
warning wait-on > @hapi/joi > @hapi/address@2.1.4: Moved to 'npm install @sideway/address'

[2/4] Fetching packages...
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @ngxs/devtools-plugin@3.8.1" has incorrect peer dependency "@angular/core@>=12.0.0 <17.0.0".
warning " > @ngxs/store@3.8.1" has incorrect peer dependency "@angular/core@>=12.0.0 <17.0.0".
warning "@stoplight/prism-cli > @stoplight/prism-http-server > io-ts-types@0.5.19" has unmet peer dependency "monocle-ts@^2.0.0".
warning "@stoplight/prism-cli > @stoplight/prism-http-server > io-ts-types@0.5.19" has unmet peer dependency "newtype-ts@^0.3.2".
warning " > @uiowa/digit-only@2.4.0" has incorrect peer dependency "@angular/common@>=10.0.0".
warning " > @uiowa/digit-only@2.4.0" has incorrect peer dependency "@angular/core@>=10.0.0".
warning "@angular-builders/jest > jest-preset-angular@7.1.1" has unmet peer dependency "core-js@>=2.0.0 < 4.0.0".
warning " > cypress-image-snapshot@3.1.2" has incorrect peer dependency "cypress@^4.5.0".

[4/4] Building fresh packages...
success Saved lockfile.
Done in 95.49s.
yarn run v1.22.15
$ ng build --prod --no-progress --named-chunks

chunk {0} runtime.25a9f54713192c35f738.js (runtime) 1.41 kB [entry] [rendered]
chunk {1} assets/themes/bmw/styles.css (assets/themes/bmw/styles) 70.1 kB [initial] [rendered]
chunk {2} main.40a42836e5709d5eb720.js (main) 128 bytes [initial] [rendered]
chunk {3} polyfills.7d44a0219e0793a40dc3.js (polyfills) 130 bytes [initial] [rendered]
chunk {4} polyfills-es5.5420cd98788162a2f410.js (polyfills-es5) 70 kB [initial] [rendered]
chunk {scripts} scripts.652c1f85f9b10a387f01.js (scripts) 82.6 kB [entry] [rendered]
Date: 2023-05-30T09:18:38.908Z - Hash: 70ffdad9898ecb54397f - Time: 5847ms

ERROR in Error during template compile of 'AppModule'
Function calls are not supported in decorators but 'NgxsModule' was called.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: Service 'labeltool-lite-frontend' failed to build: The command '/bin/sh -c yarn install && yarn build:prod' returned a non-zero code: 1

Hello @juetho

I pushed a fix for ngxs that was causing the issue. It's on branch fix/ngxr-dependency

master...fix/ngxs-dependency#diff-0586c102d3a7d7434bf7fb258b374d451b911e06f778d3a95ef8e496e80d3fb3

Please checkout to this branch and try rebuilding the solution.

commented

Hello hadikoub,

It worked. It was built successfully and is already running.
Many thanks for your support.