Instantly share code, notes, and snippets.
Created
September 19, 2023 17:09
-
Save dagg/bba31898169a1a36e6088b770637ac10 to your computer and use it in GitHub Desktop.
Error in building custom mfe image for frontend-component-footer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------ | |
> [account-prod 1/1] RUN npm run build: | |
0.672 | |
0.672 > @edx/frontend-app-account@1.0.0-semantically-released build | |
0.672 > fedx-scripts webpack | |
0.672 | |
0.710 Running with resolved config: | |
0.710 /openedx/app/node_modules/@edx/frontend-build/config/webpack.prod.config.js | |
0.710 | |
66.01 Error parsing bundle asset "/openedx/app/dist/984.9ecdfd715d268f54a866.js": no such file | |
66.01 Error parsing bundle asset "/openedx/app/dist/app.2cff36fe85b4fedf67de.js": no such file | |
66.01 Error parsing bundle asset "/openedx/app/dist/runtime.a6dc68280ac87758be81.js": no such file | |
66.01 | |
66.01 No bundles were parsed. Analyzer will show only original module sizes from stats file. | |
66.01 | |
66.11 Webpack Bundle Analyzer saved report to /openedx/app/dist/report.html | |
66.51 assets by status 2.69 MiB [cached] 9 assets | |
66.51 Entrypoint app = runtime.a6dc68280ac87758be81.js 984.9ecdfd715d268f54a866.css 984.9ecdfd715d268f54a866.js app.2cff36fe85b4fedf67de.js 5 auxiliary assets | |
66.51 orphan modules 10.9 MiB (javascript) 0 bytes (css/mini-extract) [orphan] 5980 modules | |
66.51 runtime modules 3.87 KiB 12 modules | |
66.51 cacheable modules 8.61 MiB (javascript) 0 bytes (css/mini-extract) 842 modules | |
66.51 | |
66.51 WARNING in ./node_modules/react-responsive/dist/react-responsive.js | |
66.51 Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): | |
66.51 Failed to parse source map: 'webpack:///dist/react-responsive.js' URL is not supported | |
66.51 @ ./node_modules/@edx/paragon/dist/index.js 111:0-102 111:0-102 111:0-102 111:0-102 | |
66.51 @ ./src/account-settings/coaching/CoachingConsent.jsx 12:0-41 50:24-33 | |
66.51 @ ./src/index.jsx 14:0-74 26:19-34 | |
66.51 | |
66.51 1 warning has detailed information that is not shown. | |
66.51 Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it. | |
66.51 | |
66.51 ERROR in ./src/index.jsx 10:0-84 | |
66.51 Module not found: Error: Can't resolve '@edx/frontend-component-footer' in '/openedx/app/src' | |
66.51 resolve '@edx/frontend-component-footer' in '/openedx/app/src' | |
66.51 Parsed request is a module | |
66.51 using description file: /openedx/app/package.json (relative path: ./src) | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 resolve as module | |
66.51 /openedx/app/src/node_modules doesn't exist or is not a directory | |
66.51 looking for modules in /openedx/app/node_modules | |
66.51 single file module | |
66.51 using description file: /openedx/app/package.json (relative path: ./node_modules/@edx/frontend-component-footer) | |
66.51 no extension | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer is not a file | |
66.51 .js | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer.js doesn't exist | |
66.51 .jsx | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer.jsx doesn't exist | |
66.51 existing directory /openedx/app/node_modules/@edx/frontend-component-footer | |
66.51 using description file: /openedx/app/node_modules/@edx/frontend-component-footer/package.json (relative path: .) | |
66.51 using description file: /openedx/app/package.json (relative path: ./node_modules/@edx/frontend-component-footer) | |
66.51 no extension | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer is not a file | |
66.51 .js | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer.js doesn't exist | |
66.51 .jsx | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer.jsx doesn't exist | |
66.51 as directory | |
66.51 existing directory /openedx/app/node_modules/@edx/frontend-component-footer | |
66.51 using description file: /openedx/app/node_modules/@edx/frontend-component-footer/package.json (relative path: .) | |
66.51 use ./dist/index.js from main in package.json | |
66.51 using description file: /openedx/app/node_modules/@edx/frontend-component-footer/package.json (relative path: ./dist/index.js) | |
66.51 no extension | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer/dist/index.js doesn't exist | |
66.51 .js | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer/dist/index.js.js doesn't exist | |
66.51 .jsx | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer/dist/index.js.jsx doesn't exist | |
66.51 as directory | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer/dist/index.js doesn't exist | |
66.51 using path: /openedx/app/node_modules/@edx/frontend-component-footer/index | |
66.51 using description file: /openedx/app/node_modules/@edx/frontend-component-footer/package.json (relative path: ./index) | |
66.51 no extension | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer/index doesn't exist | |
66.51 .js | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer/index.js doesn't exist | |
66.51 .jsx | |
66.51 Field 'browser' doesn't contain a valid alias configuration | |
66.51 /openedx/app/node_modules/@edx/frontend-component-footer/index.jsx doesn't exist | |
66.51 /openedx/node_modules doesn't exist or is not a directory | |
66.51 /node_modules doesn't exist or is not a directory | |
66.51 | |
66.51 ERROR in ./src/index.scss | |
66.51 Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): | |
66.51 ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): | |
66.51 SassError: Can't find stylesheet to import. | |
66.51 ╷ | |
66.51 9 │ @import "~@edx/frontend-component-footer/dist/footer"; | |
66.51 │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
66.51 ╵ | |
66.51 src/index.scss 9:9 root stylesheet | |
66.51 at processResult (/openedx/app/node_modules/webpack/lib/NormalModule.js:760:19) | |
66.51 at /openedx/app/node_modules/webpack/lib/NormalModule.js:862:5 | |
66.51 at /openedx/app/node_modules/loader-runner/lib/LoaderRunner.js:400:11 | |
66.51 at /openedx/app/node_modules/loader-runner/lib/LoaderRunner.js:252:18 | |
66.51 at context.callback (/openedx/app/node_modules/loader-runner/lib/LoaderRunner.js:124:13) | |
66.51 at Object.loader (/openedx/app/node_modules/sass-loader/dist/index.js:69:5) | |
66.51 @ ./src/index.jsx 16:0-22 | |
66.51 | |
66.51 1 ERROR in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details) | |
66.51 webpack 5.76.0 compiled with 3 errors and 1 warning in 62266 ms | |
------ | |
Dockerfile:239 | |
-------------------- | |
237 | FROM account-common AS account-prod | |
238 | ENV NODE_ENV=production | |
239 | >>> RUN npm run build | |
240 | | |
241 | ######## discussions (production) | |
-------------------- | |
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1 | |
Error: Command failed with status 1: docker buildx build --tag=docker.io/overhangio/openedx-mfe:16.1.1 --output=type=docker --cache-from=type=registry,ref=docker.io/overhangio/openedx-mfe:16.1.1-cache --build-context=learning-src=/home/spooky/WORK/PEK/TUTOR/FORKS/frontend-app-learning --build-context=account-src=/home/spooky/WORK/PEK/TUTOR/FORKS/frontend-app-account /home/spooky/.local/share/tutor/env/plugins/mfe/build/mfe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment