Build error in Data Element Custom Code

Avatar

Avatar

ai_thanhh816013

Avatar

ai_thanhh816013

ai_thanhh816013

23-03-2018

I got this error while trying to build an Data Element (custom code)

Could not find Extension for ...

In the Data Element, I put a very simple code to test:

var person = new Object();

And it seems that I got an error for that line of code:

1449463_pastedImage_0.png

So is it possible to initialize a JS Object in Launch? Or is this an error?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Gigazelle

Employee

Avatar

Gigazelle

Employee

Gigazelle
Employee

05-12-2018

That's Launch's version of linting. It will still compile just fine, and if you hover over the caution symbol, it should give more info on why it's flagged.

Answers (1)

Answers (1)

Avatar

Avatar

FOX007

Avatar

FOX007

FOX007

25-03-2018

I get the same result, but out of curiosity why not use object literal notation?  var test = {};