Skip to content

ExportsCache.has: __require.cache[filename]; cannot read properties of undefinedΒ #113

@douglasg14b

Description

@douglasg14b

I'm building with TS and esbuild.

Using v7.5.2

This is used as a side effect of @opentelemetry/auto-instrumentations-node

It seems like __require.cache doesn't exist?His is bundled with esbuild for node 22

TypeError: Cannot read properties of undefined (reading '/home/douglas/programming/08_ivr/ivr3/node_modules/.pnpm/@[email protected]/node_modules/@tsoa/runtime/dist/index.js')
    at ExportsCache.has (file:///home/douglas/programming/08_ivr/ivr3/apps/ivr3-api/dist/optTelemetry.js:9999:39)
    at Module.patchedRequire (file:///home/douglas/programming/08_ivr/ivr3/apps/ivr3-api/dist/optTelemetry.js:10090:26)
    at Hook._require.Module.require (file:///home/douglas/programming/08_ivr/ivr3/apps/ivr3-api/dist/optTelemetry.js:10053:31)
    at require (node:internal/modules/helpers:136:16)
    at Object.<anonymous> (/home/douglas/programming/08_ivr/ivr3/node_modules/.pnpm/[email protected]/node_modules/tsoa/dist/index.js:17:14)
    at Module._compile (node:internal/modules/cjs/loader:1562:14)
    at Object..js (node:internal/modules/cjs/loader:1699:10)
    at Module.load (node:internal/modules/cjs/loader:1313:32)
    at Function._load (node:internal/modules/cjs/loader:1123:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)

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