MoLow / ng-node-compile

Compile html templates the angular way, in node js
14 stars 7 forks source link

TypeError: Cannot set property length of [object Object] which has only a getter #9

Open soryy708 opened 7 years ago

soryy708 commented 7 years ago

I'm using ng-node-compile@1.5.5

When trying to run the following code:

var ngCompile = require('ng-node-compile');
var ngEnv = new ngCompile();
var html = ngEnv.$interpolate('Hello {{world}}')({world: 'World!'});

I get the following error:

TypeError: Cannot set property length of [object Object] which has only a getter at NodeList.splice

soryy708 commented 7 years ago

If I use the latest version of the package, this error doesn't happen but var ngEnv = new ngCompile(); and everything after it doesn't run.