Effect CommunityEC
Effect Community3y ago
9 replies
Graeme

Error in building runtime due to undefined cur

Hi! Unfortunately I'm about to dash off for the weekend and don't have time to produce a repro right now, but we're getting an error here https://github.com/Effect-TS/effect/blob/2882ee8685106f4ef0177e602bc0899b2625481a/src/internal/fiberRuntime.ts#L1287 because cur is undefined. We're trying to run an effect to build a runtime in a similar fashion to the examples. Just wanted to check that we shouldn't get an error like that?
  console.error
    error creating runtime {
      _id: 'FiberFailure',
      cause: {
        _id: 'Cause',
        _tag: 'Die',
        defect: TypeError: Cannot use 'in' operator to search for '_op' in undefined
            at FiberRuntime.runLoop (/Users/graemefoster/Development/Contingent/marketplace/node_modules/effect/src/internal/fiberRuntime.ts:1287:20)
            at FiberRuntime.evaluateEffect (/Users/graemefoster/Development/Contingent/marketplace/node_modules/effect/src/internal/fiberRuntime.ts:863:29)
            at FiberRuntime.evaluateMessageWhileSuspended (/Users/graemefoster/Development/Contingent/marketplace/node_modules/effect/src/internal/fiberRuntime.ts:830:14)
            at FiberRuntime.drainQueueOnCurrentThread (/Users/graemefoster/Development/Contingent/marketplace/node_modules/effect/src/internal/fiberRuntime.ts:586:18)
            at Array.run (/Users/graemefoster/Development/Contingent/marketplace/node_modules/effect/src/internal/fiberRuntime.ts:1338:10)
            at SyncScheduler.flush (/Users/graemefoster/Development/Contingent/marketplace/node_modules/effect/src/Scheduler.ts:190:19)
            at /Users/graemefoster/Development/Contingent/marketplace/node_modules/effect/src/internal/runtime.ts:225:15
            at ab (/Users/graemefoster/Development/Contingent/marketplace/node_modules/effect/src/internal/runtime.ts:100:44)
            at pipe (/Users/graemefoster/Development/Contingent/marketplace/node_modules/effect/src/Function.ts:652:14)

So sorry not to be able to dig deeper right now!
Was this page helpful?