Skip to main content
ai_thanhh816013
Mar 23, 2018 3:05 PM UTC
Solved

Build error in Data Element Custom Code

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:

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

Thanks,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Gigazelle
GigazelleAccepted solution
Adobe Employee
Dec 5, 2018 9:07 PM UTC

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.

2 replies

Level 2
Mar 26, 2018 2:13 AM UTC

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

Translate
Gigazelle
Adobe Employee
GigazelleAdobe EmployeeAccepted solution
Adobe Employee
Dec 5, 2018 9:07 PM UTC

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.

Translate