Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

unfixable deprecation issue [deprecation id: ember-string.add-package]

Aperta
#370 18 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia dal messaggio di deprecazione e dal package.json del progetto, confrontando la devDependency @ember/string dichiarata con gli import che attivano l'avviso. Esamina la guida alla deprecazione di Ember collegata e l'issue ember-string referenziata per determinare se l'avviso o la risoluzione della dipendenza sia azionabile. Il lavoro è completato quando viene identificato un fix confermato oppure viene documentato perché l'issue deve attendere una modifica agli internals di Ember.

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

Descrizione

DEPRECATION: Importing from `@ember/string` without having the `@ember/string` package in your project is deprecated. Please add `@ember/string` to your `package.json [deprecation id: ember-string.add-package] This will be removed in ember-source 5.0.0. See https://deprecations.emberjs.com/v4.x/#toc_ember-string-add-package for more details.

After upgrading to ember 4.10, I noticed that I am seeing thousands of this deprecation warnings when my app boots up. I checked and to my surprise I was having "@ember/string": "^3.0.1" within devDependencies in my package.json. A discussion on discord pointed be to @ef4 comment: https://github.com/emberjs/ember-string/issues/235#issuecomment-1061413761
Looks like this is describing a similar issue, where it is unclear which implementation (ember-string vs ember internals) is being used.

Is there anything that can be done other waiting for ember to remove its own implementation, or manually silence deprecation warnings?

Additionally it looks like in this case the deprecation message is quite misleading - however, I guess that is part of ember and not ember-string?

Lingua principale
TypeScript
Stelle
4
Fork
14
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di emberjs/ember-string

Tutte le issue di emberjs/ember-string

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.