import { types } from "mobx-state-tree";抛出错误
mobx-state-tree.module.js:2354 Uncaught TypeError: Object(...) is not a function
at CoreType.BaseType (mobx-state-tree.module.js:2354)
at CoreType.SimpleType [as constructor] (mobx-state-tree.module.js:2554)
at new CoreType (mobx-state-tree.module.js:6418)
at Module.<anonymous> (mobx-state-tree.module.js:6491)
at Module../node_modules/mobx-state-tree/dist/mobx-state-tree.module.js (mobx-state-tree.module.js:8319)
at __webpack_require__ (bootstrap:19)
at Module../js/app.js (app.js:1)
at __webpack_require__ (bootstrap:19)
at Object.0 (global.js:20)
at __webpack_require__ (bootstrap:19)为什么会这样呢?我所要做的就是导入。
版本为5.0.0
发布于 2021-01-22 08:33:54
我不得不将mobx从版本5更新到版本6。
https://stackoverflow.com/questions/65837677
复制相似问题