开发的插件无法启动

本地开发,可以正常使用,打包前也跑了一遍 yarn 清除缓存,删除 根目录node包 ,yarn install ,yarn dev 跑了一遍,编译插件后 在docker跑的项目上 上传tar 启动出现以下

本地和 docker 版本一致 “@nocobase/cli”: “1.6.24”

Failed to enable plugin: Class constructor JavaScriptInstruction cannot be invoked without 'new'
docker 日志

{"level":"error","message":"Failed to enable plugin","stack":"Error: Failed to enable plugin\n    at _AppCommand.<anonymous> (/app/nocobase/node_modules/@nocobase/server/lib/commands/pm.js:75:13)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async _AppCommand.parseAsync (/app/nocobase/node_modules/commander/lib/command.js:935:5)\n    at async _AsyncEmitter.runAsCLI (/app/nocobase/node_modules/@nocobase/server/lib/application.js:557:23)","meta":{},"module":"application","submodule":"","method":"","app":"main","reqId":"674aeea6-aa99-4ff2-a25e-c8daf1a1dfd1","dataSourceKey":"main","timestamp":"2025-05-10 15:59:49"}
{"level":"error","message":"Class constructor JavaScriptInstruction cannot be invoked without 'new'","stack":"TypeError: Class constructor JavaScriptInstruction cannot be invoked without 'new'\n    at /app/nocobase/node_modules/@nocobase/database/lib/collection-importer.js:73:42\n    at async Promise.all (index 0)\n    at async _ImporterReader.read (/app/nocobase/node_modules/@nocobase/database/lib/collection-importer.js:75:13)\n    at async _AsyncEmitter.import (/app/nocobase/node_modules/@nocobase/database/lib/database.js:711:21)\n    at async plugin_default.loadCollections (/app/nocobase/node_modules/@nocobase/server/lib/plugin.js:182:7)\n    at async _PluginManager.enable (/app/nocobase/node_modules/@nocobase/server/lib/plugin-manager/plugin-manager.js:559:9)\n    at async _AppCommand.<anonymous> (/app/nocobase/node_modules/@nocobase/server/lib/commands/pm.js:70:7)\n    at async _AppCommand.parseAsync (/app/nocobase/node_modules/commander/lib/command.js:935:5)\n    at async _AsyncEmitter.runAsCLI (/app/nocobase/node_modules/@nocobase/server/lib/application.js:557:23)","app":"main","reqId":"674aeea6-aa99-4ff2-a25e-c8daf1a1dfd1","timestamp":"2025-05-10 15:59:49"}


如果方便的话,最好提供一下源码(可以私信),这个看起来是个打包的问题。