Compiler error in app but not in kickstarter - "The operator of a 'delete' operator must be optional."

Compiler error in app but not in kickstarter - "The operator of a 'delete' operator must be optional."

Hi,

I do realize that this is probably more a Typescript question than a Tago question but since I don't see the same error in the kickstarter project I am hoping that somebody here can elaborate.

So I am deleting the time stamp on a TagoData object to make sure it gets a fresh timestamp when stored. The compiler doesn't like that though.
  1. const [dev_data] = await tago_dev.getData({ variables: ["device_name"], groups: device_id.id })
    delete dev_data.time; // <- "The operator of a 'delete' operator must be optional."
However... the exact same construct is used in the kickstarter project and the compiler has no problems with that whatsoever...
  1. //fetching prev data
    const [user_name_config_dev] = await config_dev.getData({ variables: "user_name", qty: 1, groups: user_id });
    ...
    //modifying json object
    delete user_name_config_dev.time; // <- No compiler error here...
... Same IDE, same versions, same config files same everything... as far as I can see.
So to say that I am confused is an understatement :-)

Any Suggestions are greatly appreciated.

Cheers,

Erwin