adobe / adobe/target-nodejs-sdk-samples

Possible depencensy issue

Aperta
#55 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
19
Fork
42
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

It seems that many dependencies are deprecated and some are no longer supported. Can this repo be updated?
```

npm update
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: target-nodejs-react-sample@1.0.0
npm error Found: webpack@5.95.0
npm error node_modules/webpack
npm error dev webpack@"^5.95.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer webpack@"^4.0.0" from uglifyjs-webpack-plugin@2.2.0
npm error node_modules/uglifyjs-webpack-plugin
npm error dev uglifyjs-webpack-plugin@"^2.2.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
```

Even after using `npm update --force` the following persists:

```
npm warn using --force Recommended protections disabled.
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: uglifyjs-webpack-plugin@2.2.0
npm warn Found: webpack@5.95.0
npm warn node_modules/webpack
npm warn dev webpack@"^5.95.0" from the root project
npm warn 5 more (babel-loader, copy-webpack-plugin, file-loader, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer webpack@"^4.0.0" from uglifyjs-webpack-plugin@2.2.0
npm warn node_modules/uglifyjs-webpack-plugin
npm warn dev uglifyjs-webpack-plugin@"^2.2.0" from the root project
npm warn
npm warn Conflicting peer dependency: webpack@4.47.0
npm warn node_modules/webpack
npm warn peer webpack@"^4.0.0" from uglifyjs-webpack-plugin@2.2.0
npm warn node_modules/uglifyjs-webpack-plugin
npm warn dev uglifyjs-webpack-plugin@"^2.2.0" from the root project
npm warn deprecated fsevents@1.2.13: Upgrade to fsevents v2 to mitigate potential security issues
npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated figgy-pudding@3.5.2: This module is no longer supported.
npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated move-concurrently@1.0.1: This package is no longer supported.
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated fs-write-stream-atomic@1.0.10: This package is no longer supported.
npm warn deprecated babel-preset-es2015@6.24.1: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
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.
```

```
npm run build && npm start

> target-nodejs-react-sample@1.0.0 build
> webpack --mode=production

[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.module.rules[0] has an unknown property 'query'. These properties are valid:
object { assert?, compiler?, dependency?, descriptionData?, enforce?, exclude?, generator?, include?, issuer?, issuerLayer?, layer?, loader?, mimetype?, oneOf?, options?, parser?, realResource?, resolve?, resource?, resourceFragment?, resourceQuery?, rules?, scheme?, sideEffects?, test?, type?, use?, with? }
-> A rule description with conditions and effects for modules.

```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo il conflitto tra le dipendenze con `npm update`, quindi esegui `npm run build \u0026\u0026 npm start` per confermare l’errore di configurazione di webpack. Esamina le versioni delle dipendenze che coinvolgono webpack e uglifyjs-webpack-plugin, insieme ai pacchetti deprecati segnalati. Il lavoro è completato quando l’installazione non richiede più force né legacy peer dependencies e la build viene completata correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, webpack
Ambito
build-system
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.