Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/418.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 未捕获的TypeError:对象原型只能是对象或null:未定义_Javascript_Reactjs_Npm - Fatal编程技术网

Javascript 未捕获的TypeError:对象原型只能是对象或null:未定义

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

当我在开发中运行我的应用程序时,一切正常,但我使用“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)
2.9b72e8af.chunk.js:sourcemap:1未捕获类型错误:对象原型
只能是对象或null:未定义
在setPrototypeOf(

我读到的其他帖子很少有和我一样的问题,但没有一篇有帮助


非常感谢您的建议。

不幸的是,这是因为Syncfusion的Dialog组件出现了错误,他们为此提供了补丁。

不幸的是,这是因为Syncfusion的Dialog组件出现了错误,他们为此提供了补丁。

您需要发布导致错误的代码。您需要将导致错误的代码作为一个标记发布。