Skip to content

[Bug] Incorrect "import htmlSafe from '@ember/string'" deprecation warning when importing from '@ember/template'  #19393

@urbany

Description

@urbany

Hi everyone, after upgrating to latest stable ember-source@3.25.1 I'm getting:

DEPRECATION: Importing htmlSafe from '@ember/string' is deprecated. Please import htmlSafe from '@ember/template' instead. [deprecation id: ember-string.htmlsafe-ishtmlsafe]

the thing is my helper is importing correctly:
import { htmlSafe } from '@ember/template';
but when i check the compiled version on the browser it is compiling to:
Ember.String.htmlSafe

which is triggering the deprecation warning.

@locks suggested on Discord it might be related to https://github.com/ember-cli/ember-rfc176-data needing an update

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions