Weather · Temperature datafield SDK 3.2

Good morning,

I am developing a new datafield foe EDGE devives with new SDK and I am getting an error on third line :: var current....

    function compute(info)
    {

var currentConditions = Weather.getCurrentConditions();
if (currentConditions != null) { }

This is the message when I execute the simulator. When I compile everithing is OK

Error: Symbol Not Found Error
Details: Failed invoking <symbol>
Stack:
  - compute() at C:\Users\oriol\OneDrive\Garmin IQ Development\EDGE\source\EDGEView.mc:342 0x10000fb2