Administration Build Error

Hallo liebe Community,

ich hoffe ihr könnt mir vielleicht helfen. Ich beschäftige mich gerade etwas mit der Erstellung von eigenes Plugins für die Administration und arbeite dabei gerade die Doku/Anleitungen von Shopware durch.

Mittlerweile bin ich bei dem Punkt angelangt an dem ich bin/administration-build.sh ausführen soll.
Leider bricht der Build aber mit einem Fehler ab. Nachfolgend füge ich den gesamten Output des Vorgangs hinzu.

Achja ich folgende Setup ist gegeben.

Shopware Version: 6.4.20.2
PHP: 7.4.33
Node Version v16.20.2
npm Version: 8.19.4

Das ganze läuft als dev Umgebung lokal auf meinem Mac (Intel) in einer MAMP Pro Umgebung.

Hat vielleicht wer eine Idee woran es liegen könnte warum die Build nicht ordnungsgemäß fertiggestellt wird?
Vielen Dank für eure Untersützung.

Liebe Grüße
Maks

OUTPUT des Buildvorgangs:

sh bin/build-administration.sh

[OK] Dumped plugin configuration.

Cannot check extensions for required npm installations as jq is not installed
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: Array.prototype.sort() - JavaScript | MDN
npm WARN deprecated source-map-url@0.4.1: See GitHub - lydell/source-map-url: [DEPRECATED] Tools for working with sourceMappingURL comments.
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see Request’s Past, Present and Future · Issue #3142 · request/request · GitHub
npm WARN deprecated urix@0.1.0: Please see GitHub - lydell/urix: [DEPRECATED] Makes Windows-style paths more unix and URI friendly.
npm WARN deprecated opn@6.0.0: The package has been renamed to open
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated mkdirp@0.5.3: 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.)
npm WARN deprecated fsevents@2.1.3: „Please update to latest v2.3 or v2.2“
npm WARN deprecated resolve-url@0.2.1: GitHub - lydell/resolve-url: [DEPRECATED] Like Node.js’ `path.resolve`/`url.resolve` for the browser.
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.
npm WARN deprecated w3c-hr-time@1.0.2: Use your platform’s native performance.now() and performance.timeOrigin.
npm WARN deprecated 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. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
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.
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.
npm WARN deprecated intl-messageformat-parser@1.8.1: We’ve written a new parser that’s 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
npm WARN deprecated raven@2.6.4: Please upgrade to @sentry/node. See the migration guide sentry-javascript/MIGRATION.md at master · getsentry/sentry-javascript · GitHub
npm WARN deprecated uuid@3.3.2: 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.
npm WARN deprecated request@2.88.2: request has been deprecated, see Request’s Past, Present and Future · Issue #3142 · request/request · GitHub
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated puppeteer@13.7.0: < 18.1.0 is no longer supported
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.

administration@1.0.0 postinstall
patch-package

patch-package 6.4.7
Applying patches…
eslint@7.32.0 :heavy_check_mark:
eslint-plugin-vue@7.9.0 :heavy_check_mark:
vue-eslint-parser@7.6.0 :heavy_check_mark:

added 2770 packages, and audited 2776 packages in 59s

181 packages are looking for funding
run npm fund for details

92 vulnerabilities (1 low, 58 moderate, 27 high, 6 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.

administration@1.0.0 build
mode=production webpack

Compiling with Webpack configuration

Production mode is activated :rocket:

Plugin „Storefront“: Injected successfully

Plugin „UnzerPayment6“: Injected successfully

Plugin „CrswCleverReachOfficial“: Injected successfully

Plugin „SpnoNewsletterEconomy“: Injected successfully

Plugin „SpnoNewsletterBusiness“: Injected successfully

Plugin „SwpDataProtectionTimestampSix“: Injected successfully

Plugin „SwagExtensionStore“: Injected successfully

Plugin „XantenLastSeenProduct“: Injected successfully

Plugin „OrdMan“: Injected successfully

Plugin „SwagExtensionStore“: Extends the webpack config successfully

Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: GitHub - browserslist/update-db: CLI tool to update caniuse-lite to refresh target browsers from Browserslist config
node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:130:10)
at module.exports (/Users/maks/NetBeansProjects/neuhold/shopware/vendor/shopware/administration/Resources/app/administration/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/Users/maks/NetBeansProjects/neuhold/shopware/vendor/shopware/administration/Resources/app/administration/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/Users/maks/NetBeansProjects/neuhold/shopware/vendor/shopware/administration/Resources/app/administration/node_modules/webpack/lib/NormalModule.js:471:10)
at /Users/maks/NetBeansProjects/neuhold/shopware/vendor/shopware/administration/Resources/app/administration/node_modules/webpack/lib/NormalModule.js:503:5
at /Users/maks/NetBeansProjects/neuhold/shopware/vendor/shopware/administration/Resources/app/administration/node_modules/webpack/lib/NormalModule.js:358:12
at /Users/maks/NetBeansProjects/neuhold/shopware/vendor/shopware/administration/Resources/app/administration/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/Users/maks/NetBeansProjects/neuhold/shopware/vendor/shopware/administration/Resources/app/administration/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/Users/maks/NetBeansProjects/neuhold/shopware/vendor/shopware/administration/Resources/app/administration/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /Users/maks/NetBeansProjects/neuhold/shopware/vendor/shopware/administration/Resources/app/administration/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (/Users/maks/NetBeansProjects/neuhold/shopware/vendor/shopware/administration/Resources/app/administration/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /Users/maks/NetBeansProjects/neuhold/shopware/vendor/shopware/administration/Resources/app/administration/node_modules/babel-loader/lib/index.js:59:71 {
opensslErrorStack: [ ‚error:03000086:digital envelope routines::initialization error‘ ],
library: ‚digital envelope routines‘,
reason: ‚unsupported‘,
code: ‚ERR_OSSL_EVP_UNSUPPORTED‘
}

Hat wirklich niemand eine Idee woran das liegen könnte?

Leider bin ich noch nicht wirklich weiter. Der einzige Output den ich bis jetzt geschafft habe, war das ich die gesamte Shopware Umgebung bei meinen Versuchen „zerlegt“ habe.

Ich hatte eh ein Backup und habe dieses wieder eingespielt.

Liebe Grüße
Maks

Hi all,

es ist jetzt etwas Zeit vergangen aber ich wollte diesen Post nicht einfach im leeren Raum /ohne Lösung stehen lassen.

Ich konnte das Problem lösen, es waren veraltete node Packete bzw die falsche node Version auf meiner Dev Maschine. Nach der Anpasung der nodeJS Version und und dem Update (per composer) konnte ich dann erfolgreich „administration-build.sh“ ausführen und das Backend wurde erfolgreich gebaut.

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.