Skip to content

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

Open
@gijsroge

Description

@gijsroge

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react-router

SDK Version

19.9.0

Framework Version

React 19

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://github.com/gijsroge/sentry-19.9-issue

Steps to Reproduce

npm run dev

Expected Result

Actual Result

When running npm run dev

I get the following error:

failed to load config from /frontend/apps/website/vite.config.ts
TypeError: setters.get(...)[name] is not a function
    at Object.set (/frontend/node_modules/.pnpm/import-in-the-middle@1.13.2/node_modules/import-in-the-middle/lib/register.js:13:37)
    at callHookFn (/frontend/node_modules/.pnpm/import-in-the-middle@1.13.2/node_modules/import-in-the-middle/index.js:31:23)
    at Hook._iitmHook (/frontend/node_modules/.pnpm/import-in-the-middle@1.13.2/node_modules/import-in-the-middle/index.js:150:11)
    at /frontend/node_modules/.pnpm/import-in-the-middle@1.13.2/node_modules/import-in-the-middle/lib/register.js:42:31
    at Array.forEach (<anonymous>)
    at register (/frontend/node_modules/.pnpm/import-in-the-middle@1.13.2/node_modules/import-in-the-middle/lib/register.js:42:15)
    at file:///frontend/node_modules/.pnpm/react-router@7.6.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-router/dist/development/index.mjs?iitm=true:1635:1
    at ModuleJobSync.runSync (node:internal/modules/esm/module_job:396:35)
    at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:366:47)
    at loadESMFromCJS (node:internal/modules/cjs/loader:1554:24)

Good to know is that this did not happen on 19.8.0 so the issue has been re-introduced in 19.9.0. I say re-introduced because it was reported on < 19.15.0 versions as well #16137

Possibly related: nodejs/import-in-the-middle#188

Metadata

Metadata

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions