Tutor version: 17.0.5, MFE version: 17.0.1, I am using a fork of the indigo theme and the authn mfe to edit the login page.
Hi, I am new to tutor and openedx and still learning how it works. While doing tutor images build openedx , I am getting the following warnings and I do not understand why this is happening:
27 warnings found (use --debug to expand):
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 3)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 15)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 38)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 63)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 70)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 79)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 118)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 137)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 246)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 285)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 11)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 28)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 80)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 81)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 82)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 119)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 165)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 166)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 180)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 181)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 182)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 201)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 212)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 213)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 238)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 239)
JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 294)
Then, when I build the mfe images using tutor images build mfe, I get the following error. I do not know it the warnings and this error are related to eachother.:
=> CANCELED [authn-prod 1/1] RUN npm run build 15.6s
[account-common 5/8] RUN npm install ‘@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^1.0.0’:
8.294 npm ERR! code ERESOLVE
8.299 npm ERR! ERESOLVE unable to resolve dependency tree
8.299 npm ERR!
8.299 npm ERR! While resolving: @edx/frontend-app-account@1.0.0-semantically-released
8.299 npm ERR! Found: @edx/frontend-platform@5.5.4
8.299 npm ERR! node_modules/@edx/frontend-platform
8.299 npm ERR! @edx/frontend-platform@“5.5.4” from the root project
8.300 npm ERR!
8.300 npm ERR! Could not resolve dependency:
8.300 npm ERR! peer @edx/frontend-platform@“^7.0.0” from @edx/frontend-component-header@1.1.3
8.300 npm ERR! node_modules/@edx/frontend-component-header
8.300 npm ERR! @edx/frontend-component-header@“npm:@edly-io/indigo-frontend-component-header@^1.0.0” from the root project
8.300 npm ERR!
8.300 npm ERR! Fix the upstream dependency conflict, or retry
8.300 npm ERR! this command with --force or --legacy-peer-deps
8.300 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
8.301 npm ERR!
8.301 npm ERR!
8.301 npm ERR! For a full report see:
8.301 npm ERR! /root/.npm/_logs/2024-06-21T09_28_36_848Z-eresolve-report.txt
8.303
8.303 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-06-21T09_28_36_848Z-debug-0.log
12 warnings found (use --debug to expand):
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 48)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 104)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 162)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 219)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 274)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 332)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 387)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 444)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 502)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 557)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 682)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 21)
Dockerfile:128
126 |
127 | RUN npm install ‘@edx/brand@npm:@edly-io/indigo-brand-openedx@^1.0.0’
128 | >>> RUN npm install ‘@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^1.0.0’
129 | RUN npm install ‘@edx/frontend-component-footer@npm:@edly-io/indigo-frontend-component-footer@^1.0.0’
130 | COPY --from=account-src / /openedx/app
ERROR: failed to solve: process “/bin/sh -c npm install ‘@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^1.0.0’” did not complete successfully: exit code: 1
Error: Command failed with status 1: docker buildx build --tag=docker.io/overhangio/openedx-mfe:17.0.1-indigo --output=type=docker --cache-from=type=registry,ref=docker.io/overhangio/openedx-mfe:17.0.1-indigo-cache /home/azureuser/.local/share/tutor/env/plugins/mfe/build/mfe
I also tried the --no-cache when building images but that didn’t help either. This issue started after I did a docker system prune -a to clean up space taken by the images.
I would appreciate any help regarding these issues. Thank you in advance.
I think the error suggested that the fork of your frontend-app-authn has a dependency issue.
Try to disable the fork and use the default authn mfe to see if the error goes away.
And then resolve the dependency issue in your fork.
I’m also having a problem when trying to build the mfs image!
this is what I’m getting:
(tutor_env) developer@AmjadLaptop:~/tutor_env$ tutor images build mfe --no-cache --no-registry-cache
Building image docker.io/overhangio/openedx-mfe:18.0.0
docker buildx build --tag=docker.io/overhangio/openedx-mfe:18.0.0 --no-cache --output=type=docker /home/developer/.local/share/tutor/env/plugins/mfe/build/mfe
[+] Building 514.5s (99/115) docker:default
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 18.98kB 0.0s
=> resolve image config for docker-image://docker.io/docker/dockerfile:1 1.9s
=> [auth] docker/dockerfile:pull token for registry-1.docker.io 0.0s
=> CACHED docker-image://docker.io/docker/dockerfile:1@sha256:e87caa74dcb7d46cd820352bfea12591f3dba3ddc4285e19c7dcd13359f7cefd 0.0s
=> [internal] load metadata for docker.io/library/caddy:2.7.4 1.6s
=> [internal] load metadata for docker.io/library/node:18.19.0-bullseye-slim 1.6s
=> [auth] library/caddy:pull token for registry-1.docker.io 0.0s
=> [auth] library/node:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> CACHED [gradebook-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-gradebook: Instructor gradebook tool for Master's programs 3.1s
=> CACHED [production 1/12] FROM docker.io/library/caddy:2.7.4@sha256:505de4e957da923672a8c79f16581e9b717a2479a8d5ddb909ab2d1 0.0s
=> CACHED [ora-grading-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-ora-grading: Open Response Assessment - Enhanced Staff Grader - Allows graders to easily review, evaluate and grade ORAs 3.2s
=> CACHED [discussions-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-discussions: A React-based micro frontend for the Open edX discussion forums. 3.2s
=> CACHED [profile-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-profile: Open edX micro-frontend application for managing user profile information. 3.2s
=> CACHED [learning-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-learning: Front-end for the Open edX course experience, implemented using React and Paragon. 3.1s
=> CACHED [course-authoring-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-course-authoring: The micro-frontend for course authoring in Open edX. Frontend interfaces that currently live in Studio/CMS should eventually live here. 3.2s
=> CACHED [learner-dashboard-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-learner-dashboard: Learner Dashboard MFE 3.2s
=> CACHED [base 1/4] FROM docker.io/library/node:18.19.0-bullseye-slim@sha256:6089d97d625bc7c3510f6c3ada72b3e80e383fee52ff340f 0.0s
=> CACHED [communications-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-communications: Frontend to manage instructor-learner communications 3.1s
=> CACHED [account-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-account: Open edX micro-frontend application for managing user account information. 3.1s
=> CACHED [authn-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-authn: Open edX micro-frontend application for new login and registration experience. . 0.9s
=> [production 2/12] RUN mkdir -p /openedx/dist 0.7s
=> [base 2/4] RUN apt update && apt install -y git gcc libgl1 libxi6 make autoconf libtool pkg-config zlib1g-dev 103.6s
=> [base 3/4] RUN mkdir -p /openedx/app /openedx/env 0.4s
=> [base 4/4] WORKDIR /openedx/app 0.0s
=> [ora-grading-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-ora-grading: Open Response Assessment - Enhanced Staff Grader - Allows graders to easily review, evaluate and grade ORAs. 0.4s
=> [gradebook-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-gradebook: Instructor gradebook tool for Master's programs . 0.4s
=> [learner-dashboard-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-learner-dashboard: Learner Dashboard MFE 0.7s
=> [account-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-account: Open edX micro-frontend application for managing user account information. . 0.4s
=> [learning-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-learning: Front-end for the Open edX course experience, implemented using React and Paragon. . 0.8s
=> [authn-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-authn: Open edX micro-frontend application for new login and registration experience. . 0.4s
=> [profile-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-profile: Open edX micro-frontend application for managing user profile information. . 0.3s
=> [course-authoring-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-course-authoring: The micro-frontend for course authoring in Open edX. Frontend interfaces that currently live in Studio/CMS should eventually live here. 1.5s
=> [discussions-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-discussions: A React-based micro frontend for the Open edX discussion forums.. 0.5s
=> [communications-git 1/1] ADD --keep-git-dir=true GitHub - openedx/frontend-app-communications: Frontend to manage instructor-learner communications 0.3s
=> [profile-src 1/1] COPY --from=profile-git /openedx/app / 0.1s
=> [communications-src 1/1] COPY --from=communications-git /openedx/app / 0.1s
=> [account-src 1/1] COPY --from=account-git /openedx/app / 0.2s
=> [gradebook-src 1/1] COPY --from=gradebook-git /openedx/app / 0.2s
=> [profile-common 1/5] COPY --from=profile-src /package.json /openedx/app/package.json 0.2s
=> [communications-common 1/5] COPY --from=communications-src /package.json /openedx/app/package.json 0.1s
=> [authn-src 1/1] COPY --from=authn-git /openedx/app / 0.2s
=> [ora-grading-src 1/1] COPY --from=ora-grading-git /openedx/app / 0.2s
=> [discussions-src 1/1] COPY --from=discussions-git /openedx/app / 0.2s
=> [communications-common 2/5] COPY --from=communications-src /package-lock.json /openedx/app/package-lock.json 0.2s
=> [profile-common 2/5] COPY --from=profile-src /package-lock.json /openedx/app/package-lock.json 0.2s
=> [account-common 1/5] COPY --from=account-src /package.json /openedx/app/package.json 0.2s
=> [gradebook-common 1/5] COPY --from=gradebook-src /package.json /openedx/app/package.json 0.2s
=> [learner-dashboard-src 1/1] COPY --from=learner-dashboard-git /openedx/app / 0.3s
=> [authn-common 1/5] COPY --from=authn-src /package.json /openedx/app/package.json 0.2s
=> [ora-grading-common 1/5] COPY --from=ora-grading-src /package.json /openedx/app/package.json 0.2s
=> [communications-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fun 231.0s
=> [discussions-common 1/5] COPY --from=discussions-src /package.json /openedx/app/package.json 0.2s
=> [learning-src 1/1] COPY --from=learning-git /openedx/app / 0.4s
=> [account-common 2/5] COPY --from=account-src /package-lock.json /openedx/app/package-lock.json 0.3s
=> CANCELED [profile-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-f 402.8s
=> [gradebook-common 2/5] COPY --from=gradebook-src /package-lock.json /openedx/app/package-lock.json 0.3s
=> [authn-common 2/5] COPY --from=authn-src /package-lock.json /openedx/app/package-lock.json 0.3s
=> [ora-grading-common 2/5] COPY --from=ora-grading-src /package-lock.json /openedx/app/package-lock.json 0.2s
=> [discussions-common 2/5] COPY --from=discussions-src /package-lock.json /openedx/app/package-lock.json 0.2s
=> [learner-dashboard-common 1/5] COPY --from=learner-dashboard-src /package.json /openedx/app/package.json 0.2s
=> [account-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --reg 270.8s
=> [gradebook-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --r 231.5s
=> [authn-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --regis 227.8s
=> [ora-grading-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund - 265.7s
=> [discussions-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund - 270.6s
=> [learning-common 1/5] COPY --from=learning-src /package.json /openedx/app/package.json 0.1s
=> [learner-dashboard-common 2/5] COPY --from=learner-dashboard-src /package-lock.json /openedx/app/package-lock.json 0.1s
=> [learning-common 2/5] COPY --from=learning-src /package-lock.json /openedx/app/package-lock.json 0.1s
=> [learner-dashboard-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no- 247.0s
=> ERROR [learning-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fun 396.3s
=> [course-authoring-src 1/1] COPY --from=course-authoring-git /openedx/app / 0.3s
=> [course-authoring-common 1/5] COPY --from=course-authoring-src /package.json /openedx/app/package.json 0.1s
=> [course-authoring-common 2/5] COPY --from=course-authoring-src /package-lock.json /openedx/app/package-lock.json 0.1s
=> [course-authoring-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-f 314.3s
=> [authn-common 4/5] COPY --from=authn-src / /openedx/app 1.7s
=> [authn-common 5/5] RUN make OPENEDX_ATLAS_PULL=true ATLAS_OPTIONS=“–repository=openedx/openedx-translations --revision=ope 6.7s
=> [communications-common 4/5] COPY --from=communications-src / /openedx/app 0.8s
=> [communications-common 5/5] RUN make OPENEDX_ATLAS_PULL=true ATLAS_OPTIONS=”–repository=openedx/openedx-translations --rev 4.9s
=> [gradebook-common 4/5] COPY --from=gradebook-src / /openedx/app 1.1s
=> [gradebook-common 5/5] RUN make OPENEDX_ATLAS_PULL=true ATLAS_OPTIONS=“–repository=openedx/openedx-translations --revision 3.9s
=> CANCELED [communications-prod 1/1] RUN npm run build 159.5s
=> ERROR [authn-prod 1/1] RUN npm run build 158.5s
=> CANCELED [gradebook-prod 1/1] RUN npm run build 160.1s
=> [learner-dashboard-common 4/5] COPY --from=learner-dashboard-src / /openedx/app 0.9s
=> [learner-dashboard-common 5/5] RUN make OPENEDX_ATLAS_PULL=true ATLAS_OPTIONS=”–repository=openedx/openedx-translations – 3.3s
=> CANCELED [learner-dashboard-prod 1/1] RUN npm run build 145.4s
=> [ora-grading-common 4/5] COPY --from=ora-grading-src / /openedx/app 0.6s
=> [ora-grading-common 5/5] RUN make OPENEDX_ATLAS_PULL=true ATLAS_OPTIONS=“–repository=openedx/openedx-translations --revisi 3.7s
=> CANCELED [ora-grading-prod 1/1] RUN npm run build 126.9s
=> [account-common 4/5] COPY --from=account-src / /openedx/app 0.6s
=> [discussions-common 4/5] COPY --from=discussions-src / /openedx/app 0.6s
=> [account-common 5/5] RUN make OPENEDX_ATLAS_PULL=true ATLAS_OPTIONS=”–repository=openedx/openedx-translations --revision=o 3.6s
=> [discussions-common 5/5] RUN make OPENEDX_ATLAS_PULL=true ATLAS_OPTIONS=“–repository=openedx/openedx-translations --revisi 3.5s
=> CANCELED [discussions-prod 1/1] RUN npm run build 121.6s
=> CANCELED [account-prod 1/1] RUN npm run build 120.4s
=> [course-authoring-common 4/5] COPY --from=course-authoring-src / /openedx/app 4.4s
=> [course-authoring-common 5/5] RUN make OPENEDX_ATLAS_PULL=true ATLAS_OPTIONS=”–repository=openedx/openedx-translations --r 6.6s
=> CANCELED [course-authoring-prod 1/1] RUN npm run build 69.6s
[learning-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/:
50.23 npm WARN deprecated domexception@2.0.1: Use your platform’s native DOMException instead
56.78 npm WARN deprecated w3c-hr-time@1.0.2: Use your platform’s native performance.now() and performance.timeOrigin.
88.06 npm WARN deprecated core-js@3.22.2: 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.
119.8 npm WARN deprecated urix@0.1.0: Please see GitHub - lydell/urix: [DEPRECATED] Makes Windows-style paths more unix and URI friendly.
120.6 npm WARN deprecated source-map-url@0.4.1: See GitHub - lydell/source-map-url: [DEPRECATED] Tools for working with sourceMappingURL comments.
122.3 npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
122.3 npm WARN deprecated source-map-resolve@0.5.3: See GitHub - lydell/source-map-resolve: [DEPRECATED] Resolve the source map and/or sources for a generated file.
164.6 npm WARN deprecated superagent@3.8.3: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at https://github.com/visionmedia/superagent/releases.
173.0 npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: formidable/VERSION_NOTES.md at master · node-formidable/formidable · GitHub
191.1 npm WARN deprecated resolve-url@0.2.1: GitHub - lydell/resolve-url: [DEPRECATED] Like Node.js’ `path.resolve`/`url.resolve` for the browser.
201.5 npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
204.7 npm WARN deprecated @fortawesome/fontawesome-common-types@0.3.0: Please upgrade to 6.1.0. Font Awesome
205.3 npm WARN deprecated @fortawesome/fontawesome-svg-core@1.3.0: Please upgrade to 6.1.0. Font Awesome
215.3 npm WARN deprecated @babel/plugin-proposal-unicode-property-regex@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.
225.9 npm WARN deprecated domexception@4.0.0: Use your platform’s native DOMException instead
229.1 npm WARN deprecated 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 There’s Math.random(), and then there’s Math.random() · V8 for details.
230.8 npm WARN deprecated 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 There’s Math.random(), and then there’s Math.random() · V8 for details.
255.5 npm WARN deprecated core-js@3.6.5: 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.
255.6 npm WARN deprecated 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.
255.7 npm WARN deprecated 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.
395.1 npm notice
395.1 npm notice New minor version of npm available! 10.2.3 → 10.8.1
395.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
395.1 npm notice Run npm install -g npm@10.8.1 to update!
395.1 npm notice
395.1 npm ERR! code ETIMEDOUT
395.1 npm ERR! syscall read
395.1 npm ERR! errno -110
395.1 npm ERR! network read ETIMEDOUT
395.1 npm ERR! network This is a problem related to network connectivity.
395.1 npm ERR! network In most cases you are behind a proxy or have bad network settings.
395.1 npm ERR! network
395.1 npm ERR! network If you are behind a proxy, please make sure that the
395.1 npm ERR! network ‘proxy’ config is set properly. See: ‘npm help config’
395.1
395.1 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-06-21T16_52_28_983Z-debug-0.log
[authn-prod 1/1] RUN npm run build:
3.092
3.092 > @edx/frontend-app-authn@0.1.0 build
3.092 > fedx-scripts webpack
3.092
3.282 Running with resolved config:
3.282 /openedx/app/webpack.prod.config.js
3.282
157.4 Killed
157.5 npm notice
157.5 npm notice New minor version of npm available! 10.2.3 → 10.8.1
157.5 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
157.6 npm notice Run npm install -g npm@10.8.1 to update!
157.6 npm notice
12 warnings found (use --debug to expand):
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 31)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 75)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 119)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 163)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 207)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 251)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 295)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 339)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 383)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 427)
FromAsCasing: ‘as’ and ‘FROM’ keywords’ casing do not match (line 538)
LegacyKeyValueFormat: “ENV key=value” should be used instead of legacy “ENV key value” format (line 21)
Dockerfile:351
ERROR: failed to solve: process “/bin/sh -c npm clean-install --no-audit --no-fund --registry=$NPM_REGISTRY” did not complete successfully: exit code: 146
Error: Command failed with status 1: docker buildx build --tag=docker.io/overhangio/openedx-mfe:18.0.0 --no-cache --output=type=docker /home/developer/.local/share/tutor/env/plugins/mfe/build/mfe
As for the warnings @regis I think they have been fixed. As for the error it’s causing the image build to fail. Any Ideas would be great.
Thanks
Thanks. The solution seemed to work. The authn error was removed, but the warnings are still there. I wonder if there is any method to make sure issues with dependencies when using MFEs do not occur in the first place.
Have you tried tutor images build all --no-cache. This has sometimes worked well for me compared to just running tutor images build mfe --no-cache or tutor images build openedx --no-cache or both one after the other.