Javascript 未捕获的TypeError:对象原型只能是对象或null:未定义
当我在开发中运行我的应用程序时,一切正常,但我使用“npm运行构建”为生产构建项目,我得到以下错误:Javascript 未捕获的TypeError:对象原型只能是对象或null:未定义,javascript,reactjs,npm,Javascript,Reactjs,Npm,当我在开发中运行我的应用程序时,一切正常,但我使用“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.9b72e8
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)
2.9b72e8af.chunk.js:sourcemap:1未捕获类型错误:对象原型
只能是对象或null:未定义
在setPrototypeOf(
我读到的其他帖子很少有和我一样的问题,但没有一篇有帮助
非常感谢您的建议。不幸的是,这是因为Syncfusion的Dialog组件出现了错误,他们为此提供了补丁。不幸的是,这是因为Syncfusion的Dialog组件出现了错误,他们为此提供了补丁。您需要发布导致错误的代码。您需要将导致错误的代码作为一个标记发布。