Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The {{in-element}} helper cannot be used #2

Closed
MrChriZ opened this issue Aug 15, 2018 · 9 comments
Closed

The {{in-element}} helper cannot be used #2

MrChriZ opened this issue Aug 15, 2018 · 9 comments

Comments

@MrChriZ
Copy link

MrChriZ commented Aug 15, 2018

Using Ember v3.3.0 when attempting to use in-element I get the error message:
The {{in-element}} helper cannot be used

@simonihmig
Copy link
Contributor

Thanks for reporting! Published 0.1.3 which should hopefully fix your problem!

@MrChriZ
Copy link
Author

MrChriZ commented Aug 15, 2018

Magic - thanks.

I don't suppose you know of any working examples of using {{in-element}} in Ember?
My attempts so far have been less than successful and documentation out there is limited!

@simonihmig
Copy link
Contributor

I used it here:

(both through https://github.com/DockYard/ember-maybe-in-element, but that's basically the same, just adding the renderInPlace support)

Important is that the destinationElement exists in DOM before the in-element is rendered!

@MrChriZ
Copy link
Author

MrChriZ commented Aug 15, 2018

Thanks I'll take a look at those :)

@allthesignals
Copy link

I am also seeing this.

I have ember-in-element-polyfill installed in my project.

Yet, my project won't build because a dependency, ember-mapbox-gl, uses in-element, and throws this error:

Build Error (broccoli-persistent-filter:Babel > [Babel: ember-mapbox-gl]) in ember-mapbox-gl/templates/components/mapbox-gl-popup.js

/Users/mattgardner/labs-zola/ember-mapbox-gl/templates/components/mapbox-gl-popup.js: Assertion Failed: The {{in-element}} helper cannot be used. ('ember-mapbox-gl/templates/components/mapbox-gl-popup.hbs' @ L1:C0) Error: /Users/mattgardner/labs-zola/ember-mapbox-gl/templates/components/mapbox-gl-popup.js: Assertion Failed: The {{in-element}} helper cannot be used. ('ember-mapbox-gl/templates/components/mapbox-gl-popup.hbs'

How is this happening? I have a polyfill installed that I assume enables the use of this. Yet... I get this message.

@allthesignals
Copy link

Opened an issue DockYard/ember-maybe-in-element#61

@obrunofontana
Copy link

Opened an issue DockYard/ember-maybe-in-element#61

Hey dude, i was dealing with the same issue as you, what i did to resolve it was to downgrade my package-lock to the previous version, its a workarround solution, but work for me.

@pzubar
Copy link

pzubar commented Apr 18, 2023

@obrunofontana @allthesignals I'm facing a similar issue. Could you please provide more details about downgrading? Do you mean downgrading the ember-maybe-in-element? What version fixes the issue? Thank you!

@Mikek2252
Copy link

Mikek2252 commented Oct 18, 2023

@pzubar Probably too late, but it seems like it is caused by ember-maybe-in-element: 2.1.0 adding a override or resolution to 2.0.3 fixed it for me, they dropped the polyfill in that version and seems like the app version isn't loaded in time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants