xudafeng / autoresponsive-react-native

Auto Responsive Layout Library For React

Home Page:https://xudafeng.github.io/autoresponsive-react/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

两个react native依赖冲突

CoderTitan opened this issue · comments

Loading dependency graph...(node:11703) UnhandledPromiseRejectionWarning: Error: jest-haste-map: Haste module naming collision:
Duplicate module name: react-native
Paths: /Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/autoresponsive-react-native/node_modules/react-native/package.json collides with /Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/react-native/package.json

This error is caused by hasteImpl returning the same name for different files.
at setModule (/Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/metro/node_modules/jest-haste-map/build/index.js:569:17)
at workerReply (/Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/metro/node_modules/jest-haste-map/build/index.js:641:9)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:11703) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:11703) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:11703) UnhandledPromiseRejectionWarning: Error: jest-haste-map: Haste module naming collision:
Duplicate module name: react-native
Paths: /Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/autoresponsive-react-native/node_modules/react-native/package.json collides with /Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/react-native/package.json

This error is caused by hasteImpl returning the same name for different files.
at setModule (/Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/metro/node_modules/jest-haste-map/build/index.js:569:17)
at workerReply (/Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/metro/node_modules/jest-haste-map/build/index.js:641:9)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:11703) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
Error: jest-haste-map: Haste module naming collision:
Duplicate module name: react-native
Paths: /Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/autoresponsive-react-native/node_modules/react-native/package.json collides with /Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/react-native/package.json

This error is caused by hasteImpl returning the same name for different files.
at setModule (/Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/metro/node_modules/jest-haste-map/build/index.js:569:17)
at workerReply (/Users/xxx/Desktop/ReactNative/ReactDemo/node_modules/metro/node_modules/jest-haste-map/build/index.js:641:9)
at processTicksAndRejections (internal/process/next_tick.js:81:5)