<section class="input-box">
<div class="container">
<div class="row">
<div class="col-3 input-effect">
<input class="effect-16" type="text" placeholder="">
<label>First Name</label>
<span class="focus-border"></span>
</div>
<div class="col-3 input-effect">
<input class="effect-16" type="text" placeholder="">
<label>Last Name</label>
<span class="focus-border"></span>
</div>
<div class="col-3 input-effect">
<input class="effect-16" type="text" placeholder="">
<label>Address</label>
<span class="focus-border"></span>
</div>
<div class="col-3 input-effect">
<input class="effect-16" type="text" placeholder="">
<label>Mobile</label>
<span class="focus-border"></span>
</div>
</div>
</div>
</section>
和下面是package.json,它位于twitter节点模块包中
Error: jest-haste-map: @providesModule naming collision:
Duplicate module name: react-native
Paths: C:\Users\xxxx\Desktop\app\node_modules\react-native-twitter-
signin\node_modules\react-native\android\package.json collides with
C:\Users\xxxx\Desktop\app\node_modules\react-native\package.json
这是package.json,它位于应用程序文件夹内的节点模块中
{
"_from": "react-native@^0.56.0",
"_id": "react-native@0.56.1",
"_inBundle": false,
"_integrity": "sha512-PLeXNFf7yYTiR+KNmRk90xV41nh5CN54G+X26G1usOriU8WQyj52fYzoUv4VZMpA6i8I99zmOHFWHpwkeWQSxA==",
"_location": "/react-native-twitter-signin/react-native",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "react-native@^0.56.0",
"name": "react-native",
"escapedName": "react-native",
"rawSpec": "^0.56.0",
"saveSpec": null,
"fetchSpec": "^0.56.0"
},
"_requiredBy": [
"/react-native-twitter-signin"
],
"_resolved": "https://registry.npmjs.org/react-native/-/react-native-0.56.1.tgz",
"_shasum": "8d60e2a989b0a620486a68f5f7e1b451557a0e54",
"_spec": "react-native@^0.56.0",
"_where": "C:\\Users\\Vipin\\Desktop\\Fuelex\\node_modules\\react-native-twitter-signin",
"bin": {
"react-native": "local-cli/wrong-react-native.js"
},
"bugs": {
"url": "https://github.com/facebook/react-native/issues"
},
"bundleDependencies": false,
"dependencies": {
"absolute-path": "^0.0.0",
"art": "^0.10.0",
"base64-js": "^1.1.2",
"chalk": "^1.1.1",
"commander": "^2.9.0",
"compression": "^1.7.1",
"connect": "^3.6.5",
"create-react-class": "^15.6.3",
"debug": "^2.2.0",
"denodeify": "^1.2.1",
"envinfo": "^5.7.0",
"errorhandler": "^1.5.0",
"escape-string-regexp": "^1.0.5",
"event-target-shim": "^1.0.5",
"fbjs": "0.8.16",
"fbjs-scripts": "^0.8.1",
"fs-extra": "^1.0.0",
"glob": "^7.1.1",
"graceful-fs": "^4.1.3",
"inquirer": "^3.0.6",
"lodash": "^4.17.5",
"metro": "^0.38.1",
"metro-babel-register": "^0.38.1",
"metro-core": "^0.38.1",
"metro-memory-fs": "^0.38.1",
"mime": "^1.3.4",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"morgan": "^1.9.0",
"node-fetch": "^1.3.3",
"node-notifier": "^5.2.1",
"npmlog": "^2.0.4",
"opn": "^3.0.2",
"optimist": "^0.6.1",
"plist": "^3.0.0",
"pretty-format": "^4.2.1",
"promise": "^7.1.1",
"prop-types": "^15.5.8",
"react-clone-referenced-element": "^1.0.1",
"react-devtools-core": "^3.2.2",
"react-timer-mixin": "^0.13.2",
"regenerator-runtime": "^0.11.0",
"rimraf": "^2.5.4",
"semver": "^5.0.3",
"serve-static": "^1.13.1",
"shell-quote": "1.6.1",
"stacktrace-parser": "^0.1.3",
"ws": "^1.1.0",
"xcode": "^0.9.1",
"xmldoc": "^0.4.0",
"yargs": "^9.0.0"
},
"deprecated": false,
"description": "A framework for building native apps using React",
"devDependencies": {
"@babel/core": "7.0.0-beta.47",
"async": "^2.4.0",
"babel-eslint": "8.2.1",
"babel-generator": "^6.26.0",
"eslint": "4.17.0",
"eslint-config-fb-strict": "22.1.0",
"eslint-config-fbjs": "2.0.1",
"eslint-plugin-eslint-comments": "2.0.2",
"eslint-plugin-flowtype": "2.43.0",
"eslint-plugin-jest": "21.8.0",
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.8.2",
"eslint-plugin-react-native": "^3.2.1",
"flow-bin": "^0.75.0",
"jest": "23.2.0",
"jest-junit": "5.1.0",
"prettier": "1.13.6",
"react": "16.4.1",
"react-test-renderer": "16.4.1",
"shelljs": "^0.7.8",
"sinon": "^2.2.0"
},
"engines": {
"node": ">=8"
},
"files": [
".flowconfig",
"android",
"cli.js",
"flow",
"flow-github",
"init.sh",
"scripts/ios-configure-glog.sh",
"scripts/ios-install-third-party.sh",
"scripts/launchPackager.bat",
"scripts/launchPackager.command",
"scripts/packager.sh",
"scripts/react-native-xcode.sh",
"jest-preset.json",
"jest",
"lib",
"rn-get-polyfills.js",
"setupBabel.js",
"Libraries",
"LICENSE",
"local-cli",
"packager",
"react.gradle",
"React.podspec",
"React",
"ReactAndroid",
"ReactCommon",
"README.md",
"third-party-podspecs"
],
"homepage": "https://github.com/facebook/react-native#readme",
"jest": {
"transform": {
"^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$": "<rootDir>/jest/assetFileTransformer.js",
".*": "./jest/preprocessor.js"
},
"setupFiles": [
"./jest/setup.js"
],
"timers": "fake",
"moduleNameMapper": {
"^React$": "<rootDir>/Libraries/react-native/React.js"
},
"testPathIgnorePatterns": [
"Libraries/Renderer",
"/node_modules/",
"local-cli/templates/"
],
"haste": {
"defaultPlatform": "ios",
"hasteImplModulePath": "<rootDir>/jest/hasteImpl.js",
"providesModuleNodeModules": [
"react-native"
],
"platforms": [
"ios",
"android"
]
},
"modulePathIgnorePatterns": [
"/node_modules/(?!react|fbjs|react-native|react-transform-hmr|core-js|promise)/",
"node_modules/react/node_modules/fbjs/",
"node_modules/react/lib/ReactDOM.js",
"node_modules/fbjs/lib/Map.js",
"node_modules/fbjs/lib/Promise.js",
"node_modules/fbjs/lib/fetch.js",
"node_modules/fbjs/lib/ErrorUtils.js",
"node_modules/fbjs/lib/URI.js",
"node_modules/fbjs/lib/Deferred.js",
"node_modules/fbjs/lib/PromiseMap.js",
"node_modules/fbjs/lib/UserAgent.js",
"node_modules/fbjs/lib/areEqual.js",
"node_modules/fbjs/lib/base62.js",
"node_modules/fbjs/lib/crc32.js",
"node_modules/fbjs/lib/everyObject.js",
"node_modules/fbjs/lib/fetchWithRetries.js",
"node_modules/fbjs/lib/filterObject.js",
"node_modules/fbjs/lib/flattenArray.js",
"node_modules/fbjs/lib/forEachObject.js",
"node_modules/fbjs/lib/isEmpty.js",
"node_modules/fbjs/lib/nullthrows.js",
"node_modules/fbjs/lib/removeFromArray.js",
"node_modules/fbjs/lib/resolveImmediate.js",
"node_modules/fbjs/lib/someObject.js",
"node_modules/fbjs/lib/sprintf.js",
"node_modules/fbjs/lib/xhrSimpleDataSerializer.js",
"node_modules/jest-cli",
"node_modules/react/dist",
"node_modules/fbjs/.*/__mocks__/",
"node_modules/fbjs/node_modules/"
],
"unmockedModulePathPatterns": [
"node_modules/react/",
"Libraries/Renderer",
"promise",
"source-map",
"fastpath",
"denodeify",
"fbjs",
"sinon"
],
"testEnvironment": "node"
},
"license": "MIT",
"main": "Libraries/react-native/react-native-implementation.js",
"name": "react-native",
"peerDependencies": {
"react": "16.4.1"
},
"prettier": {
"requirePragma": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": true,
"parser": "flow"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/facebook/react-native.git"
},
"scripts": {
"docker-build-android": "docker build -t reactnativeci/android -f ContainerShip/Dockerfile.android .",
"docker-build-android-base": "docker build -t reactnativeci/android-base -f ContainerShip/Dockerfile.android-base .",
"docker-setup-android": "docker pull reactnativeci/android-base:latest",
"flow": "flow",
"lint": "eslint .",
"prettier": "find . -name node_modules -prune -or -name '*.js' -print | xargs prettier --write",
"start": "/usr/bin/env bash -c './scripts/packager.sh \"$@\" || true' --",
"test": "jest",
"test-android-all": "yarn run docker-build-android && yarn run test-android-run-unit && yarn run test-android-run-instrumentation && yarn run test-android-run-e2e",
"test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e",
"test-android-instrumentation": "yarn run docker-build-android && yarn run test-android-run-instrumentation",
"test-android-run-e2e": "docker run --privileged -it reactnativeci/android bash ContainerShip/scripts/run-ci-e2e-tests.sh --android --js",
"test-android-run-instrumentation": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash ContainerShip/scripts/run-android-docker-instrumentation-tests.sh",
"test-android-run-unit": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash ContainerShip/scripts/run-android-docker-unit-tests.sh",
"test-android-unit": "yarn run docker-build-android && yarn run test-android-run-unit",
"test-ci": "JEST_JUNIT_OUTPUT=\"reports/junit/js-test-results.xml\" jest --maxWorkers=2 --ci --testResultsProcessor=\"jest-junit\""
},
"version": "0.56.1"
}
我正在制作一个可以使用twitter登录的登录应用程序。我不明白这里出了什么问题。我试图编辑package.json文件,但错误仍然存在。为什么会这样?我还尝试取消链接react-native-twitter-signin,然后再次安装,但错误不会消失。在这种情况下,请帮我