Skip to content

TypeError: setters.get(...)[name] is not a function #188

Open
@gajus

Description

@gajus
TypeError: setters.get(...)[name] is not a function
    at Object.set (/Users/gajus/Developer/contra/gaia/node_modules/.pnpm/import-in-the-middle@1.13.1/node_modules/import-in-the-middle/lib/register.js:13:37)
    at callHookFn (/Users/gajus/Developer/contra/gaia/node_modules/.pnpm/import-in-the-middle@1.13.1/node_modules/import-in-the-middle/index.js:31:23)
    at Hook._iitmHook (/Users/gajus/Developer/contra/gaia/node_modules/.pnpm/import-in-the-middle@1.13.1/node_modules/import-in-the-middle/index.js:150:11)
    at /Users/gajus/Developer/contra/gaia/node_modules/.pnpm/import-in-the-middle@1.13.1/node_modules/import-in-the-middle/lib/register.js:42:31
    at Array.forEach (<anonymous>)
    at register (/Users/gajus/Developer/contra/gaia/node_modules/.pnpm/import-in-the-middle@1.13.1/node_modules/import-in-the-middle/lib/register.js:42:15)
    at file:///Users/gajus/Developer/contra/gaia/node_modules/.pnpm/ai@4.3.10_react@18.3.1_zod@3.24.1/node_modules/ai/dist/index.mjs?iitm=true:1075:1
    at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)

I am still trying to track down the root cause of this, but all things are pointing at import-in-the-middle as the root cause.

Sharing here to see if others have faced this/have found the cause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions