【问题标题】:ag-grid-enterprice Uncaught TypeError: Object prototype may only be an Object or null: undefinedag-grid-enterprice 未捕获的类型错误:对象原型可能只是一个对象或 null:未定义
【发布时间】:2022-04-13 03:59:19
【问题描述】:

我在 React-Redux 项目工作。 我使用 ag-grid 并遇到问题。

我进入控制台:

Uncaught TypeError: Object prototype may only be an Object or null: undefined
at setPrototypeOf (<anonymous>)
at __extends (eval at <anonymous> (bundle.js:13399), <anonymous>:8:9)
at eval (eval at <anonymous> (bundle.js:13399), <anonymous>:28:5)
at eval (eval at <anonymous> (bundle.js:13399), <anonymous>:301:2)
at Object.<anonymous> (bundle.js:13399)
at __webpack_require__ (bundle.js:556)
at fn (bundle.js:87)
at eval (eval at <anonymous> (bundle.js:13390), <anonymous>:14:19)
at Object.<anonymous> (bundle.js:13390)
at __webpack_require__ (bundle.js:556)
at fn (bundle.js:87)
at eval (eval at <anonymous> (bundle.js:13255), <anonymous>:10:24)
at Object.<anonymous> (bundle.js:13255)
at __webpack_require__ (bundle.js:556)
at fn (bundle.js:87)
at eval (eval at <anonymous> (bundle.js:13246), <anonymous>:1:1)

有什么办法吗?

这是我的 packages.json 相关行:

"ag-grid": "~7.1.0",
"ag-grid-enterprise": "^14.2.0",
"ag-grid-react": "~7.1.0",

【问题讨论】:

  • 举个例子重现错误
  • 你发现了吗?我也有同样的问题

标签: javascript npm react-redux ag-grid


【解决方案1】:

遇到同样的问题。 但是尝试安装与 ag-grid-react 相同版本的 ag-grid-enterprise,然后就成功了。

"ag-grid-community": "^25.3.0",
"ag-grid-enterprise": "^25.3.0",
"ag-grid-react": "^25.3.0",

希望对你有帮助! :)

【讨论】:

    猜你喜欢
    • 2020-09-27
    • 1970-01-01
    • 1970-01-01
    • 2020-01-08
    • 2017-11-29
    • 2020-10-30
    • 1970-01-01
    • 1970-01-01
    • 2019-04-06
    相关资源
    最近更新 更多