提问者:小点点

对象原型可能只是一个对象或空:未定义


当我在开发中运行我的应用程序时,一切都很好,但是我们我使用“npm运行构建”构建生产项目,我得到这个错误:

2.9b72e8af.chunk.js:sourcemap:1 Uncaught TypeError: Object prototype 
may only be an Object or null: undefined
at setPrototypeOf (<anonymous>)
at t (2.9b72e8af.chunk.js:sourcemap:1)
at 2.9b72e8af.chunk.js:sourcemap:1
at 2.9b72e8af.chunk.js:sourcemap:1
at Object.<anonymous> (2.9b72e8af.chunk.js:sourcemap:1)
at l ((index):1)
at Object.<anonymous> (2.9b72e8af.chunk.js:sourcemap:1)
at l ((index):1)
at Object.<anonymous> (2.9b72e8af.chunk.js:sourcemap:1)
at l ((index):1)

首先,我得到了堆错误,我通过添加:

“开始”:“反应脚本--最大旧空间大小=4096开始”,

“构建”:“反应脚本--最大旧空间大小=4096构建”,

从本帖:

如何修复"致命错误:堆限制附近无效的标记压缩分配失败-JavaScript堆内存溢出"错误

我很少读到其他像我一样有同样问题的帖子,但都没有帮助。

任何建议都将不胜感激。


共1个答案

匿名用户

不幸的是,这是因为Syncfusion对话框组件的错误,他们为此提供了补丁。