Hi there, I am trying to update an existing dynami...
# typescript
f
Hi there, I am trying to update an existing dynamic resource provider that we have made with the
zod
package (for some nice schema checking). I am getting this error (in thread), is there any special balena config I am missing? I have tried using an awaited import for the package in the provider instead, but that also fails with
error: __importStar is not defined
Copy code
error: Error serializing '() => provider': index.js(50,43)

    '() => provider': index.js(50,43): captured
      variable 'provider' which indirectly referenced
        function 'create': balena-device.ts(58,10): which captured
          module './../../lib/providers/balena.ts' which indirectly referenced
            function 'Balena': balena.ts(34,15): which referenced
              function 'attemptRemoveAllVars': balena.ts(169,24): which captured
                module './../../utils/device-validation.ts' which indirectly referenced
                  function 'balenaDeviceExistsInStack': device-validation.ts(13,34): which captured
                    module './../../types/device.ts' which indirectly referenced
                      function 'validateDevices': device.ts(12,24): which captured
                        module './../../types/device.ts' which indirectly referenced
                          function 'bound safeParseAsync': which could not be serialized because
                            the function could not be parsed: ')' expected.