Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Build error in Data Element Custom Code

ai_thanhh816013
Level 1
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
Gigazelle
Correct answer by
Employee
Employee

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

0 Replies
FOX007
Level 2
Level 2

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

Gigazelle
Correct answer by
Employee
Employee

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