You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I've noticed an issue regarding the template-compiler which seems to be related to some changes in the loader package. This issue does only appear in NW.js (Node-Webkit) applications since Ember@1.13.0 when compiling templates in a debug environment.
You will always get the Cannot call compilewithout the template compiler loaded. Please loadember-template-compiler.jsprior to callingcompile`` error when calling Ember.HTMLBars.compile(), even though the `ember-template-compiler.js` has been successfully loaded.
I've found this commit, which is the cause of this issue. The isNode statement is wrong here: NW.js applications also do have the global process object. With this isNode check, the htmlbars-compiler packages will be registered to a second loader registry and are then missing in the main one, leading to the error message.
Checking for an undefined window object fixes the problem...
(Also: simply removing the isNode check will still let the tests succeed... ?!)
Well, I'm sorry, but I can't give you a JSBin demo, since you won't get any errors while running it in a browser, so I created a github gist instead, containing a very simple NW.js application which should demonstrate the problem.
The text was updated successfully, but these errors were encountered:
Hello,
I've noticed an issue regarding the template-compiler which seems to be related to some changes in the loader package. This issue does only appear in NW.js (Node-Webkit) applications since
Ember@1.13.0
when compiling templates in a debug environment.You will always get the
Cannot call
compilewithout the template compiler loaded. Please load
ember-template-compiler.jsprior to calling
compile`` error when callingEmber.HTMLBars.compile()
, even though the `ember-template-compiler.js` has been successfully loaded.I've found this commit, which is the cause of this issue. The
isNode
statement is wrong here: NW.js applications also do have the globalprocess
object. With thisisNode
check, the htmlbars-compiler packages will be registered to a second loader registry and are then missing in the main one, leading to the error message.Checking for an undefined
window
object fixes the problem...(Also: simply removing the isNode check will still let the tests succeed... ?!)
Well, I'm sorry, but I can't give you a JSBin demo, since you won't get any errors while running it in a browser, so I created a github gist instead, containing a very simple NW.js application which should demonstrate the problem.
The text was updated successfully, but these errors were encountered: