ember-tooltips: ember-wormhole error
Hi hi.
I am getting this error randomly in production from ember-wormhole which is a dependency of ember-tooltip.
The head node of a wormhole must be attached to the DOM
https://github.com/yapplabs/ember-wormhole/blob/master/addon/components/ember-wormhole.js#L63
Wondering if you had suggestions on the best way to solve this on my side?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 5
- Comments: 22 (4 by maintainers)
@maxfierke I have the same problem and it was NOT fun to pin point.
ember@3.0ember-cli-htmlbars@2.0.3ember-tooltips@3.0.2Minimal reproduction case I could find:
If itemsList has:
Obviously, can’t upgrade to 3.0.X because of this 😭
@maxfierke Works for me 🎉
@mnoble01 oh, yeah, that makes sense. I don’t think that outer
runis at all necessary. Nor is that promise, it seems like. Could you try #320?@maxfierke That branch did not work for me.
I dug into this a little more and am getting the following error from
createTooltip’s catch block. This is not the OP’s error, but it was mentioned above.which ultimately throws:
Removing the outer
runfixed the above errors and the tooltips show correctly. Not sure if this is the “fix” we’re all looking for ¯\_(ツ)_/¯.UPDATE If anyone’s curious I was able to reproduce this error in a Twiddle. In my particular case the problem stems from an interaction between ember-block-slots and ember-tooltips. I wouldn’t be surprised if it is a timing issue.