1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-29 15:24:40 +02:00
SASAPIYO (SASAGAWA Kiyoshi) 6836fc15c7 fix(backend/build): bundle 外に @tensorflow/tfjs-node を出す (#17501)
`@tensorflow/tfjs-node` はネイティブバイナリを含むパッケージで、rolldown bundle
に取り込まれると、bundle 後の `__dirname` 解決により `@mapbox/node-pre-gyp` の
`find()` がパッケージ root の `package.json` を見失い、たまたまヒットする
`packages/backend/package.json` を validate しようとして `is not node-pre-gyp
ready` Error を永続的に吐く問題があった。

`sharp` / `re2` / `@napi-rs/*` 等の同性質のネイティブモジュールは既に
`externalModules` に登録されているため、同じ扱いで `@tensorflow/tfjs-node` も
external 化することで、ランタイムでは通常通り node_modules から解決され、
node-pre-gyp の path 解決も正しく動作する。

再現条件: NSFW 判定機能(`sensitiveMediaDetection !== 'none'`)を有効にした
インスタンスで、起動後の画像処理ごとに `AiService.detectSensitive` →
`await import('@tensorflow/tfjs-node')` が走るたびに発生。

機能影響: なし(NSFW 判定機能は維持)。エラーログのノイズが解消される。

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 19:35:25 +09:00
2026-05-12 17:36:49 +09:00
2022-06-09 00:50:23 +09:00
🎨
2025-05-07 10:44:43 +09:00
2026-05-12 17:36:49 +09:00
2025-09-27 20:53:21 +09:00
2025-10-19 11:34:34 +09:00
2026-01-05 20:56:52 +09:00
2025-07-16 15:49:05 +09:00
2026-01-05 20:56:52 +09:00
2025-12-06 17:39:17 +09:00
2018-08-13 00:24:45 +09:00
2023-02-26 14:17:29 +09:00
2026-05-15 10:12:17 +09:00
2018-03-28 22:56:28 +09:00
2019-04-05 18:17:30 +09:00
2026-01-07 21:43:31 +09:00
2025-11-11 09:30:13 +09:00
2025-02-01 13:57:39 +09:00

Misskey logo

🌎 Misskey is an open source, federated social media platform that's free forever! 🚀

Learn more


find an instance create an instance become a contributor join the community become a patron

Ask DeepWiki

Thanks

Sentry

Thanks to Sentry for providing the error tracking platform that helps us catch unexpected errors.

Chromatic

Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.

Codecov

Thanks to Codecov for providing the code coverage platform that helps us improve our test coverage.

Crowdin

Thanks to Crowdin for providing the localization platform that helps us translate Misskey into many languages.

Docker

Thanks to Docker for providing the container platform that helps us run Misskey in production.


Support us with a !

Star History Chart

Description
🌎 A completely free and open interplanetary microblogging platform 🚀
https://github.com/misskey-dev/misskey Readme AGPL-3.0 611 MiB
Languages
TypeScript 64.5%
Vue 29%
JavaScript 5.7%
GLSL 0.3%
SCSS 0.3%