jasan
jasan

Reputation: 12937

babel-plugin-root-import wrong path using react-native 0.43.3

I'm calling it like so: import { SplashContainer, FooterTabsContainer, SettingsContainer } from '~/containers' it should be reading from directory /Users/jasan/Desktop/ReactModoro/app/containers It seems to add app/containers/Navigator in the path

my babel rc file: { "presets": [ "react-native-stage-0" ], "plugins": [ ["babel-root-import", { "rootPathSuffix": "app" }] ]}

screenshot_2017_04_16_20_18_22

Upvotes: 2

Views: 654

Answers (1)

jasan
jasan

Reputation: 12937

react-native start --reset-cache solved it. no more error

Upvotes: 3

Related Questions