【问题标题】:babel-plugin-root-import wrong path using react-native 0.43.3babel-plugin-root-import 使用 react-native 0.43.3 的错误路径
【发布时间】:2017-04-16 17:37:26
【问题描述】:

我这样称呼它:import { SplashContainer, FooterTabsContainer, SettingsContainer } from '~/containers' 它应该从目录/Users/jasan/Desktop/ReactModoro/app/containers 读取 路径里好像加了app/containers/Navigator

我的 babel rc 文件: { "presets": [ "react-native-stage-0" ], "plugins": [ ["babel-root-import", { "rootPathSuffix": "app" }] ]}

【问题讨论】:

    标签: react-native babel-plugin


    【解决方案1】:

    react-native start --reset-cache 解决了它。没有更多的错误

    【讨论】:

      猜你喜欢
      • 2020-04-12
      • 1970-01-01
      • 2020-11-25
      • 2021-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多