【问题标题】:React-native yarn workspaces/wml don't load imported modules that contains an installed packageReact-native yarn workspaces/wml 不加载包含已安装包的导入模块
【发布时间】:2019-12-01 15:18:36
【问题描述】:

我尝试使用工作区实现 react-native,以在移动和 Web 应用程序之间共享业务逻辑,它在 Web 上运行良好,但在 react-native 上不起作用甚至加载文件。我最终使用了 wml,但它无法从正在导入 axios 之类的包的共享包中加载文件..,尽管这些包已经安装在那里,并且它在 web 上按预期工作。

【问题讨论】:

    标签: reactjs react-native yarn-workspaces wml


    【解决方案1】:

    我通过使用 lerna 而不是 yarn workSpaces / wml 来修复它

    【讨论】:

      猜你喜欢
      • 2019-01-20
      • 2020-10-17
      • 2021-09-26
      • 2022-01-08
      • 2022-12-14
      • 1970-01-01
      • 2022-06-23
      • 2019-05-07
      • 1970-01-01
      相关资源
      最近更新 更多