Can't build Typescript project based on v4.13.7 with a Custom field

System Information
  • Strapi Version: 4.13.7
  • Operating System: macos
  • Database: postgres
  • Node Version: v16.20.1
  • NPM Version: 8.19.4
  • Yarn Version: 1.22.19


I tried to upgrade my strapi project from 4.12.6 to 4.13.7

I have a build issue in a custom field plugin register.js

export default ({ strapi }: { strapi: Strapi }) => {
    name: 'image',
    plugin: 'filestack',
    inputSize: {
      default: 12,
      isResizable: true

After investigation, I found out that the CustomFieldServerOptions type defined in node_modules/@strapi/strapi/lib/types/core/strapi/index.d.ts has a pluginId field, so I replaced the property plugin with pluginId. However, now I get another error when trying to start strapi:

Error: Could not find Custom Field: plugin::filestack.image
    at Object.get ({path}/node_modules/@strapi/strapi/lib/core/registries/custom-fields.js:34:15)
    at convertCustomFieldType ({path}/node_modules/@strapi/strapi/lib/utils/convert-custom-field-type.js:15:67)
    at Strapi.register ({path}/node_modules/@strapi/strapi/lib/Strapi.js:420:5)
    at async Strapi.load ({path}/node_modules/@strapi/strapi/lib/Strapi.js:503:5)
    at async workerProcess ({path}/node_modules/@strapi/strapi/lib/commands/actions/develop/action.js:110:26)

After short investigation I found that the file node_modules/@strapi/strapi/lib/core/registries/custom-fields.js still expects plugin property.

Is there a fix I could do or would that be a bug in strapi?

Please open a issue for this in github if none exist for this yet,