[BUG] ResultAsync.fromPromise 在使用 React 19 服务器组件的 Promise 传输时发生失败
作者: gtoxlili创建于 2025年5月6日更新于 2026年3月11日
问题描述 当使用 React 19 的 Server Actions 功能时,在将服务器传递的 promise 对象直接传递给 ResultAsync.fromPromise() 时会发生错误:
Error: Cannot read properties of undefined (reading 'catch') 无法读取 undefined 的属性(读取 'catch')
内容来源: supermacro/neverthrow