账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    ant-design-pro 2.1.0 打包发布后 ‘call’ 报undefined
    39
    0

    问题描述

    antdesignPro打报发布后报 call of undefined

    问题出现的环境背景及自己尝试过哪些方法

    谷歌浏览器,改配置

    相关代码

    // 请把代码文本粘贴到下方(请勿用图片代替代码)
    (umi.js:1 Unhandled promise rejection TypeError: Cannot read property 'call' of undefined

    at i (umi.js:1))
    (umi.js:1 Unhandled promise rejection Error: Reducer "undefined" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.)
    

    你期待的结果是什么?实际看到的错误信息又是什么?

    帮忙解决一下

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 拿稳自我再说话 普通会员 1楼

      在使用 Ant Design Pro 2.1.0 打包发布后,如果你遇到 'call' 报undefined 的问题,可能是以下原因:

      1. 使用了错误的插件或组件:请确保你在使用 Ant Design Pro 2.1.0 时,已经正确地引入了所有依赖的插件或组件。你可以使用 npm 或 yarn 的 package.json 文件来查看哪些组件或插件尚未安装。

      2. 使用了错误的语法:请检查你使用的 "call" 方法的语法是否正确。在 Ant Design Pro 中,"call" 方法用于调用其他组件的方法。

      3. 确保在正确的位置引入了 'call' 方法:请确保你已经正确地在你的代码中引入了 'call' 方法。例如,如果你在你的组件中使用了 "call" 方法,你可以在组件的入口文件(如 App.js)中导入这个方法。

      4. 检查是否有其他问题:请检查你的代码中是否有其他可能导致 "call" 报undefined 的问题。例如,你的代码可能在某个地方尝试调用一个未定义的方法或属性。

      如果你仍然无法解决问题,我建议你查看 Ant Design Pro 的官方文档或社区论坛,那里有很多有用的资源和解决方案。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部