#Support Request – Error: Cannot read properties of undefined (reading 'id') during Backend Upgrade

1 messages · Page 1 of 1 (latest)

graceful herald
#

Hi Backstage Team,

We are encountering a runtime error while Updating the backstage from 1.27 to 1.28.4:

TypeError: Cannot read properties of undefined (reading 'id') at Object.createSpecializedBackend (/Users/dusharma/Desktop/git/backstage-backend-forke/backstage-backend/node_modules/@backstage/backend-defaults/node_modules/@backstage/backend-app-api/dist/index.cjs.js:846:28) at createBackend (/Users/dusharma/Desktop/git/backstage-backend-forke/backstage-backend/node_modules/@backstage/backend-defaults/dist/index.cjs.js:46:24) at eval (webpack-internal:///./src/index.ts:34:91) at ./src/index.ts (/Users/dusharma/Desktop/git/backstage-backend-forke/backstage-backend/packages/backend/dist/main.js:1490:1) at __webpack_require__ (/Users/dusharma/Desktop/git/backstage-backend-forke/backstage-backend/packages/backend/dist/main.js:3114:33) at /Users/dusharma/Desktop/git/backstage-backend-forke/backstage-backend/packages/backend/dist/main.js:4159:37 at Object.<anonymous> (/Users/dusharma/Desktop/git/backstage-backend-forke/backstage-backend/packages/backend/dist/main.js:4161:12) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32)

📌 Context
This error occurs when invoking createBackend() during startup.
We're using Backstage version: 1.28.4

❓ Request
Could you please help us confirm:

The root cause of this error (or any known cases)?

Whether there is an expected structure for each plugin/module being passed to createBackend()?

If there are any recent changes in @backstage/backend-app-api that could affect how extension points are registered or validated?

Let us know if you need more information from our side, including src/index.ts snippets or package.json dependencies.

Thanks in advance for your support!

fallow rune
#

Hi @graceful herald, it's terribly important to stay up to date with Backstage as you are currently 10 versions behind, that's almost a years worth of updates, and at the pace of the project it's very hard to be able to help with cases like this. My initial gut is that some newer package version has perhaps slipped in but that's just a best guess. Sorry, maybe others here might have suggestions.

graceful herald
#

I’ll double-check for any newer package versions that might have been pulled in unintentionally, as you suggested. If anyone else has encountered a similar issue, I'd appreciate any input.
Thanks for your support!

solemn briar
#

I am currently upgrading from 1.37->1.39 with the same error , looking for changes...

solemn briar
#

I think it somehow relates to the schedulers, not sure why