node.js - jest-haste-map: @providesModule naming collision -


when run npm start or react-native start ,i got warning:

jest-haste-map: @providesmodule naming collision:   duplicate module name: core-js   paths: {path_to_project}/node_modules/react-native/node_modules/core-js/package.json collides {path_to_project}/node_modules/react-native/node_modules/fbjs/node_modules/core-js/package.json  warning caused @providesmodule declaration same name across 2 different files. jest-haste-map: @providesmodule naming collision:   duplicate module name: base64-js   paths: {path_to_project}/node_modules/react-native/node_modules/base64-js/package.json collides {path_to_project}/node_modules/react-native/node_modules/simple-plist/node_modules/base64-js/package.json  warning caused @providesmodule declaration same name across 2 different files. 

and here package.json file

{   "name": "projectname",   "version": "0.0.1",   "private": true,   "scripts": {     "start": "node node_modules/react-native/local-cli/cli.js start",     "test": "jest"   },   "dependencies": {     "chroma-js": "^1.3.4",     "crypto-js": "^3.1.9-1",     "mobile-center": "^0.7.0",     "mobile-center-analytics": "^0.7.0",     "mobile-center-crashes": "^0.7.0",     "mobx": "^3.1.10",     "mobx-react": "^4.1.8",     "react": "16.0.0-alpha.12",     "react-addons-shallow-compare": "^15.5.2",     "react-mixin": "^2.0.2",     "react-native": "^0.45.1",     "react-native-animatable": "^1.2.2",     "react-native-baidu-map": "^0.6.0",     "react-native-linear-gradient": "^2.0.0",     "react-native-root-toast": "^1.1.2",     "react-native-smart-splash-screen": "^2.3.4",     "react-native-vector-icons": "^4.2.0",     "react-navigation": "^1.0.0-beta.11",     "react-timer-mixin": "^0.13.3",     "realm": "^1.10.0"   },   "devdependencies": {     "babel-jest": "20.0.3",     "babel-plugin-transform-decorators-legacy": "^1.3.4",     "babel-preset-react-native": "2.0.0",     "jest": "20.0.4",     "react-test-renderer": "16.0.0-alpha.12"   },   "jest": {     "preset": "react-native"   } } 

and dev environment is:

node: v6.11.2 npm: 3.10.10 os: macos sierra 

i have tried way, such update rn version, clear watchman cache, specified dependencies's version, adjusted devdependencies's version babel-jest's version, of not work. don't know wrong, need help. or whether issue.

anything appreciate!


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -