iamport-react-native
iamport-react-native copied to clipboard
예제 실행 오류
개발OS : 윈도우10 예제버전 : 1.6.4
디펜던시 수정x
안드로이드 실행시 아래와 같은 오류가 나타납니다. iOS는 해보지 않았습니다.
예제 프로젝트를 실행해보려고 하는데 쉽게 실행이 안되네요.
warning: the transform cache was reset.
Loading dependency graph, done.
error: bundling failed: Error: Unable to resolve module styled-components/native from D:\React-native\iamport-react-native\example\node_modules\native-base\src\components\composites\Tag\index.tsx: Module styled-components/native does not exist in the Haste module map
This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:
- Clear watchman watches:
watchman watch-del-all. - Delete the
node_modulesfolder:rm -rf node_modules && npm install. - Reset Metro Bundler cache:
rm -rf /tmp/metro-bundler-cache-*ornpm start -- --reset-cache. - Remove haste cache:
rm -rf /tmp/haste-map-react-native-packager-*. at ModuleResolver.resolveDependency (D:\React-native\iamport-react-native\example\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:183:15) at ResolutionRequest.resolveDependency (D:\React-native\iamport-react-native\example\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18) at DependencyGraph.resolveDependency (D:\React-native\iamport-react-native\example\node_modules\metro\src\node-haste\DependencyGraph.js:283:16) at Object.resolve (D:\React-native\iamport-react-native\example\node_modules\metro\src\lib\transformHelpers.js:261:42) at D:\React-native\iamport-react-native\example\node_modules\metro\src\DeltaBundler\traverseDependencies.js:399:31 at Array.map () at resolveDependencies (D:\React-native\iamport-react-native\example\node_modules\metro\src\DeltaBundler\traverseDependencies.js:396:18) at D:\React-native\iamport-react-native\example\node_modules\metro\src\DeltaBundler\traverseDependencies.js:269:33 at Generator.next ( ) at asyncGeneratorStep (D:\React-native\iamport-react-native\example\node_modules\metro\src\DeltaBundler\traverseDependencies.js:87:24) DELTA [android, dev] ./index.js ▓▓░░░░░░░░░░░░░░ 16.0% (183/525), failed.
::ffff:127.0.0.1 - - [06/Jul/2021:05:24:30 +0000] "GET /index.delta?platform=android&dev=true&minify=false HTTP/1.1" 500 - "-" "okhttp/3.12.1"