Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

ReferenceError: setTimeout is not defined in ember-template-compiler-3.1.1.js

$
0
0

@vothaison wrote:

Hi,

We are migrating from Ember 2.x to Ember 3.x (3.1.1 for now). We have been using MSIE JavaScript Engine to precompile templates, and it works great with Ember 2.x;

Now There is a problem when we precompile templates with ember-template-compiler-3.1.1.js. It is now using the global setTimeout() function which is not available in JavaScript engines. And so, script engine throws when it tries to execute ember-template-compiler-3.1.1.js file.

'Script threw an exception: 'setTimeout' is undefined'

ReferenceError: setTimeout is not defined
    at ember-template-compiler-3.1.1-.js:4355:23 ->     var SET_TIMEOUT = setTimeout;
    at internalRequire (ember-template-compiler-3.1.1-.js:62:16)
    at internalRequire (ember-template-compiler-3.1.1-.js:58:24)
    at internalRequire (ember-template-compiler-3.1.1-.js:58:24)
    at requireModule (ember-template-compiler-3.1.1-.js:95:14)
    at ember-template-compiler-3.1.1-.js:17908:92
    at ember-template-compiler-3.1.1-.js:17911:2

I wonder is that configurable. i.e can we switch setTimeout() implementation to work with JavaScript engines? And, what is the problem with the old implementation of setTimeout()?

Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles