After updating the Backstage version, we are receiving the following error after running yarn tsc:
packages/backend/src/plugins/announcements.ts:12:5 - error TS2322: Type 'DatabaseService' is not assignable to type 'PluginDatabaseManager'.
The types returned by 'getClient()' are incompatible between these types.
Type 'Promise<import("/home/padupe/acme/backstage/node_modules/knex/types/index").Knex<any, any[]>>' is not assignable to type 'Promise<import("/home/padupe/acme/backstage/node_modules/@k-phoen/backstage-plugin-announcements-backend/node_modules/knex/types/index").Knex<any, any[]>>'.
Type 'import("/home/padupe/acme/backstage/node_modules/knex/types/index").Knex<any, any[]>' is not assignable to type 'import("/home/padupe/acme/backstage/node_modules/@k-phoen/backstage-plugin-announcements-backend/node_modules/knex/types/index").Knex<any, any[]>'.
The types of 'raw(...).transacting' are incompatible between these types.
Type '(trx: import("/home/padupe/acme/backstage/node_modules/knex/types/index").Knex.Transaction<any, any[]>) => import("/home/padupe/acme/backstage/node_modules/knex/types/index").Knex.Raw<any>' is not assignable to type '(trx: import("/home/padupe/acme/backstage/node_modules/@k-phoen/backstage-plugin-announcements-backend/node_modules/knex/types/index").Knex.Transaction<any, any[]>) => import("/home/padupe/acme/backstage/node_modules/@k-phoen/backstage-plugin-announcements-backend/node_modules/knex/types/index").Knex.R...'.
Types of parameters 'trx' and 'trx' are incompatible.
Type 'Transaction<any, any[]>' is missing the following properties from type 'Transaction<any, any[]>': comment, except, havingNull, havingNotNull, updateFrom
12 database,
~~~~~~~~
node_modules/@k-phoen/backstage-plugin-announcements-backend/dist/index.d.ts:75:5
75 database: PluginDatabaseManager;
~~~~~~~~
The expected type comes from property 'database' which is declared here on type 'AnnouncementsContextOptions'
Found 1 error in packages/backend/src/plugins/announcements.ts:12
error Command failed with exit code 2.
After updating the Backstage version, we are receiving the following error after running
yarn tsc
:More Info
O.S: Ubuntu 22.04 Backstage Version: 1.20.3 Node Version: 18.16.1
To reproduce
Update Backstage Version
Update Announcements Version