我正在构建 Next.js 项目并使应用程序与 React.js 相同。它在调试模式下运行良好,但在构建应用程序后,它在以下位置显示此错误:
import { PhotoEditorSDKUI, Tool, UIEvent } from 'photoeditorsdk';
https://www.npmjs.com/package/photoeditorsdk
IMG.LY 产品:PE.SDK 平台:Web Web Wrapper:React JS SDK 版本:5.14.0 设备操作系统:Win 10
错误输出:467-40c81e1cf973201c8664.js:1 ReferenceError: Fo 未定义在 Module.78424 (203-ccd5608d077546a0d990.js:305) 在 n (webpack-b19e12b5ec856c13b0c3.js:1) 在 Object.33467 (40ccf861e) 处:1) 在 n (webpack-b19e12b5ec856c13b0c3.js:1) 在 Object.63862 (467-40c81e1cf973201c8664.js:1) 在 n (webpack-b19e12b5ec856c13b0c3.js:1) 在 Module.48624 (index-5976622c10c04ead:1) ) at n (webpack-b19e12b5ec856c13b0c3.js:1) at index-597622c10c04ead06da2.js:1 at main-5880b1d57202aca5456a.js:1 33467 @ 467-40c81e1cf973201c8664.js:1 n @ webpack-b19e12b5ec856c13b0c3.js:1 63862 @ 467- 40c81e1cf973201c8664.js:1 n @ webpack-b19e12b5ec856c13b0c3.js:1 48624 @ index-597622c10c04ead06da2.js:1 n @ webpack-b19e12b5ec856c13b0c3.js:1 (anonymous) @ index-597622c10c04ead06da2.js:1 (anonymous) @ main-5880b1d57202aca5456a .js:1 承诺。then (async) onEntrypoint @ main-5880b1d57202aca5456a.js:1 Y @ main-5880b1d57202aca5456a.js:1 27950 @ index-597622c10c04ead06da2.js:1 n @ webpack-b19e12b5ec856c13b0c3.js:1 (anonymous) @ index-597622c10c04ead06da2.js: 1 nO @ webpack-b19e12b5ec856c13b0c3.js:1 (匿名) @ index-597622c10c04ead06da2.js:1 t @ webpack-b19e12b5ec856c13b0c3.js:1 (匿名) @ index-597622c10c04ead06da2.js:1