Effect CommunityEC
Effect Community6mo ago
2 replies
_matusevich

Exported variable Runtime Has or is using name 'Channel' from external module ...but cannot be named

Trying to set up a main runner with a basic service for a new project, and I get this error when trying to add my simple layer.

This is where the error happens:
import { Layer, ManagedRuntime } from "effect"
import { Imap } from "../services/Mail"

const MainLayer = Layer.mergeAll(Imap.Default)

export const RuntimeServer = ManagedRuntime.make(MainLayer)


and these are the errors:
    "message": "Exported variable 'RuntimeServer' has or is using name 'Channel' from external module \"/Users/javiermatusevich/Development/jmatusevich/sort-mail-app/node_modules/.pnpm/effect@3.17.6/node_modules/effect/dist/dts/Cause\" but cannot be named.",
    "message": "Exported variable 'RuntimeServer' has or is using name 'Effect' from external module \"/Users/javiermatusevich/Development/jmatusevich/sort-mail-app/node_modules/.pnpm/effect@3.17.6/node_modules/effect/dist/dts/Cause\" but cannot be named.",
    "message": "Exported variable 'RuntimeServer' has or is using name 'NodeInspectSymbol' from external module \"/Users/javiermatusevich/Development/jmatusevich/sort-mail-app/node_modules/.pnpm/effect@3.17.6/node_modules/effect/dist/dts/Inspectable\" but cannot be named.",
    "message": "Exported variable 'RuntimeServer' has or is using name 'Sink' from external module \"/Users/javiermatusevich/Development/jmatusevich/sort-mail-app/node_modules/.pnpm/effect@3.17.6/node_modules/effect/dist/dts/Cause\" 
    "message": "Exported variable 'RuntimeServer' has or is using name 'Stream' from external module \"/Users/javiermatusevich/Development/jmatusevich/sort-mail-app/node_modules/.pnpm/effect@3.17.6/node_modules/effect/dist/dts/Cause\" but cannot be named.",


And this is my service: (attaching below, over character limit)

This is basically a brand new project, and I'm fairly new at effect (wrote a couple programs for my main work, but this is a new sideproject I'm starting with effect and I would appreciate any help. Thank you for your time!
Was this page helpful?