ember-elsewhere icon indicating copy to clipboard operation
ember-elsewhere copied to clipboard

Error on canary: `{{#with}}` is deprecated

Open gitKrystan opened this issue 4 years ago • 2 comments

Hello there!

We are running into this deprecation on our canary builds:

Template Compiler Error (broccoli-persistent-filter:TemplateCompiler) in ember-elsewhere/templates/components/from-elsewhere.hbs

`{{#with}}` is deprecated. If you always want the block to render, replace `{{#with}}` with `{{#let}}`. If you want to conditionally render the block, use `{{#let}}` together with `{{#if}} instead. ('ember-elsewhere/templates/components/from-elsewhere.hbs' @ L6:C6) 

Looks like it comes from this template:

https://github.com/ef4/ember-elsewhere/blob/dadfa69ab5be259ea83d6bed1831bdb7989691cb/addon/templates/components/from-elsewhere.hbs#L6-L8

Happy to make a PR if you'd like. I don't know enough about ember-elsewhere to know if I should make the block render conditionally or if just replacing {{#with}} with {{#let}} would be appropriate. Thoughts?

gitKrystan avatar Feb 02 '21 23:02 gitKrystan

The deprecation for "property fallback" (i.e. use this.active.lastObject.component instead of active.lastObject.component) is about to land on canary as well

chancancode avatar Feb 03 '21 00:02 chancancode

this was fixed with https://github.com/ef4/ember-elsewhere/pull/50

cah-brian-gantzler avatar May 06 '21 13:05 cah-brian-gantzler