Expand my Community achievements bar.

SOLVED

Build error in Data Element Custom Code

Avatar

Level 1

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,

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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.

View solution in original post

2 Replies

Avatar

Level 2

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

Avatar

Correct answer by
Employee Advisor

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.