Expandir la barra de logros de la comunidad.

Mark Solution

Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.

RESUELTAS

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 solución aceptada

Avatar

Respuesta correcta de
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.

Ver la solución en mensaje original publicado

2 Respuestas

Avatar

Level 2

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

Avatar

Respuesta correcta de
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.