Ember.js: You attempted to access "nodeType" on a factory manager created by container#factoryFor. "nodeType" is not a member of a factory manager."

Created on 17 Mar 2017  路  6Comments  路  Source: emberjs/ember.js

While running a test


ember-source: 2.12.0
ember-data: 2.12.0
ember-cli: 2.12.0


screen shot 2017-03-17 at 7 25 46 am

screen shot 2017-03-17 at 7 27 09 am

Most helpful comment

This issue is caused by console.log! :scream:

Testem's sendMessageToIframe intercepts console.log and tries to JSON.stringify(decycle(message, this.eventMaxDepth)), message is a JSON-like object that contains an array of arguments originally passed to console.log.

Some arguments cause decycle to crash, you can see it in the trace of the top comment.

All 6 comments

Is it possible to create a demo showing the error? Either in ember-twiddle.com or a ember-cli app repo would work...

Yeah I should have done that before putting this up :( I haven't been able to reproduce that error with a new app, but will keep debugging and playing around this weekend and open again/comment if I come to any solutions.

Ran into this cryptic issue ~when trying to do store.createRecord() in a component integration test.~

~Managed to work around it by using store.push() instead.~

This issue is caused by console.log! :scream:

Testem's sendMessageToIframe intercepts console.log and tries to JSON.stringify(decycle(message, this.eventMaxDepth)), message is a JSON-like object that contains an array of arguments originally passed to console.log.

Some arguments cause decycle to crash, you can see it in the trace of the top comment.

~This may be related: https://github.com/testem/testem/issues/962~

It's not related.

Was this page helpful?
0 / 5 - 0 ratings