Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

Fixing htmlSafe and isHTMLSafe deprecation

$
0
0

Hi,

I recently upgraded to Ember 3.25.1 and I am trying to resolve deprecation Importing htmlSafe and isHTMLSafe from @ember/string

So wherever I was using

import { htmlSafe, isHTMLSafe } from '@ember/string';

I changed the import to

import { htmlSafe, isHTMLSafe } from '@ember/template';

Looks like a pretty straightforward fix - but then when I looked at the code generated in app.js I see code like this:

 return Ember.String.htmlSafe(resultWidth);

It looks like the old @ember/string import is being used…

There are also tons of deprecation messages in Ember Inspector suggesting that I should fix this, even though… well I did, but it looks like during the build process, the wrong function from the wrong @ember/string package is being used…

Did you ever encounter similar problem or can you please suggest what should I do?

thanks a lot

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles