03/11/2020, 9:20 PM
Trying to provision a github resource using a dynamic provider i created similar to the example provided here and getting the following error, has anyone come across this before?
error: Error serializing '() => provider': index.js(19,37)

'() => provider': index.js(19,37): captured
  variable 'provider' which indirectly referenced
    function 'create': Labels.ts(28,10): which captured
      module './Labels.ts' which indirectly referenced
        function 'bound register': which could not be serialized because
          it was a native code function.

Function code:
  function () { [native code] }

Capturing modules can sometimes cause problems.
Consider using import('./Labels.ts') or require('./Labels.ts') inside function 'create': Labels.ts(28,10)