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

Error with Ember 2.10 #82

Closed
medokin opened this issue Nov 29, 2016 · 9 comments
Closed

Error with Ember 2.10 #82

medokin opened this issue Nov 29, 2016 · 9 comments

Comments

@medokin
Copy link

medokin commented Nov 29, 2016

Using latest 0.5. Looks like #74 is still broken?

DEBUG: Ember : 2.10.0
ember.debug.js:5732DEBUG: Ember Data : 2.10.0
ember.debug.js:5732DEBUG: jQuery : 3.1.1
ember.debug.js:5732DEBUG: Ember Simple Auth : 1.1.0

ember-wormhole.js:39 Uncaught TypeError: Cannot read property 'createTextNode' of undefined
at Class.init (http://localhost:4200/assets/vendor.js:151140:50)
at Class.superWrapper [as init] (http://localhost:4200/assets/vendor.js:51395:22)
at new Class (http://localhost:4200/assets/vendor.js:47086:17)
at Function.create (http://localhost:4200/assets/vendor.js:47374:14)
at CurlyComponentManager.create (http://localhost:4200/assets/vendor.js:23812:29)
at OpenComponentOpcode.evaluate (http://localhost:4200/assets/vendor.js:58627:37)
at VM.execute (http://localhost:4200/assets/vendor.js:65202:28)
at Object.render (http://localhost:4200/assets/vendor.js:64776:23)
at RootState.render (http://localhost:4200/assets/vendor.js:23099:46)
at runInTransaction (http://localhost:4200/assets/vendor.js:34058:28)

@medokin
Copy link
Author

medokin commented Nov 29, 2016

Update: It works with 0.4

@lukemelia
Copy link
Contributor

@medokin does #66 (comment) address your issue?

@medokin
Copy link
Author

medokin commented Nov 29, 2016

@lukemelia Unfortunately not.
It does not matter what the wormhole contains. It also crashes when its empty.
I will try to reproduce with an example.

@brancusi
Copy link

Getting this as well even after upgrading to 0.5.0.

ember-wormhole.js:39 Uncaught TypeError: Cannot read property 'createTextNode' of undefined
    at Class.init (http://localhost:5000/assets/vendor.js:117511:50)
    at Class.superWrapper [as init] (http://localhost:5000/assets/vendor.js:59746:22)
    at new Class (http://localhost:5000/assets/vendor.js:55437:17)
    at Function.create (http://localhost:5000/assets/vendor.js:55725:14)
    at CurlyComponentManager.create (http://localhost:5000/assets/vendor.js:32163:29)
    at OpenComponentOpcode.evaluate (http://localhost:5000/assets/vendor.js:66978:37)
    at VM.execute (http://localhost:5000/assets/vendor.js:73553:28)
    at VM.resume (http://localhost:5000/assets/vendor.js:73532:25)
    at TryOpcode.handleException (http://localhost:5000/assets/vendor.js:74043:29)
    at UpdatingVMFrame.handleException (http://localhost:5000/assets/vendor.js:74223:35)

Every use has a single root element with no siblings as described in #66

Thanks

@brancusi
Copy link

Just noticed the fix switch _doc.document.createTextNode to _doc.createTextNode wasn't part of the 0.5.0 release. Pulling straight from git worked for me. All seems good now.

Thanks

@sly7-7
Copy link

sly7-7 commented Nov 30, 2016

I've encountered this as well, 0.5.0 has the buggy behavior with glimmer2, but 0.5.1 is OK with the workaround.
Maybe this could be closed as the underlying issue is already tracked.

@medokin
Copy link
Author

medokin commented Nov 30, 2016

There is a 0.5.1? have not seen it on releases page...

Yes it works fine.

@medokin medokin closed this as completed Nov 30, 2016
@lukemelia
Copy link
Contributor

Looks like 0.5.1 didn't get tagged or changelog'd. I'll fix shortly.

@lukemelia
Copy link
Contributor

FYI: https://github.com/yapplabs/ember-wormhole/releases/tag/0.5.1

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

4 participants