【问题标题】:ReferenceError: babelHelpers is not defined ./node_modules/react-avatar-editor/dist/index.js/</i< node_modules/react-avatar-editor/dist/index.js:1ReferenceError: babelHelpers 未定义 ./node_modules/react-avatar-editor/dist/index.js/</i< node_modules/react-avatar-editor/dist/index.js:1
【发布时间】:2020-07-26 20:02:47
【问题描述】:

在导入 react-avatar-editor 时出现 ReferenceError: babelHelpers is not defined, 请帮忙!

【问题讨论】:

  • 是否可以分享您所做的事情,以便查看可能出现的问题?

标签: reactjs babeljs babel-loader


【解决方案1】:

看起来 11.0.9 以后的版本有这个问题。 您可能想要使用 11.0.7 版本。

在您的 package-lock.json 中找到“react-avatar-editor”并将版本号替换为“11.0.7”。

[编辑] 这里提到: https://github.com/mosch/react-avatar-editor/issues/340

【讨论】:

    猜你喜欢
    • 2021-12-27
    • 2021-12-30
    • 2022-11-11
    • 2018-10-09
    • 2020-07-28
    • 2020-11-17
    • 2023-01-18
    • 1970-01-01
    • 2019-09-04
    相关资源
    最近更新 更多