Repository navigation
Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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
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/[email protected]/node_modules/import-in-the-middle/lib/register.js:13:37)
at callHookFn (/frontend/node_modules/.pnpm/[email protected]/node_modules/import-in-the-middle/index.js:31:23)
at Hook._iitmHook (/frontend/node_modules/.pnpm/[email protected]/node_modules/import-in-the-middle/index.js:150:11)
at /frontend/node_modules/.pnpm/[email protected]/node_modules/import-in-the-middle/lib/register.js:42:31
at Array.forEach (<anonymous>)
at register (/frontend/node_modules/.pnpm/[email protected]/node_modules/import-in-the-middle/lib/register.js:42:15)
at file:///frontend/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/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
Reacted by Kosuke Adachi, Jan Hejzlar, Justin, Andrew Torres, yaakovfeldman, wancup, Lasse Narula and Daniel Arrizza
Reacted by Steven Eubank
Metadata
Metadata
Assignees
Projects
- StatusShow more project fieldsNo status
Activity
chargome commentedon May 19, 2025
Hey @gijsroge thanks for reporting this!
Just tried your repro locally on my machine but could not reproduce it – neither with npm nor with pnpm. Could you try nuking your
node_modulesfolder and re-install your deps?gijsroge commentedon May 19, 2025
Thats so weird, just nuked node_modules and tried again and I do get the error. Im running node
23.7.044 remaining items
DennisKraaijeveld commentedon Jun 3, 2025
It breaks my whole app to the points I have to disable Sentry for my RR7 app on Fly.io.
chargome commentedon Jun 4, 2025
@DennisKraaijeveld sorry to hear that this stopped you from using the SDK, we'll ship a fix that disables the integration soon.
For everyone else running into this, please disable the
ReactRouterServerintegration until we found a workaround (note that this is only required for the server-side init):DennisKraaijeveld commentedon Jun 4, 2025
@chargome Thanks! No worries. As a workaround I tried spinning up the node service with the
--no-experimental-require-moduleflag enabled, and that did the trick. Everything is running now. Not sure if all things are perfectly working though since I could not test that out yet.chargome commentedon Jun 5, 2025
Started a broader discussion on observability in React Router here!
chargome commentedon Jun 16, 2025
Closing this one, please upgrade to the latest version of the SDK and see https://docs.sentry.io/platforms/javascript/guides/react-router/#limited-node-support-for-auto-instrumentation for a workaround.
Use Node.js v22.12.0