(expo) @providesModule declaration with the same name across two different files
Getting below error while trying to run react native expo project.
[19:40:00] (node:7766) UnhandledPromiseRejectionWarning: Error: jest-haste-map: @providesModule naming collision:
[19:40:00] Duplicate module name: react-native-cli
[19:40:00] Paths: /home/Desktop/projects/app/storybook/node_modules/react-native/react-native-cli/package.json collides with
/home/Desktop/projects/app/vendor-mobile/node_modules/react-native/react-native-cli/package.json
[19:40:00]
[19:40:00] This error is caused by a @providesModule declaration with the same name across two different files.
[19:40:00] at setModule (/home/Desktop/projects/app/vendor-mobile/node_modules/jest-haste-map/build/index.js:462:17)
[19:40:00] at workerReply (/home/Desktop/projects/app/vendor-mobile/node_modules/jest-haste-map/build/index.js:512:9)
[19:40:00] at <anonymous>
[19:40:00] at process._tickCallback (internal/process/next_tick.js:188:7)
..............
..............
We have 2 projects (React Native Expo) and (React Native Expo Storybook) both of which has react-native
modules.
Below is the Storybook Expo App package.json
"name": "ui-components",
"version": "0.0.1",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts":
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject",
"storybook": "storybook start"
,
"dependencies":
"expo": "^31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-material-textfield": "^0.12.0",
"react-native-paper": "^2.2.4",
"react-native-progress": "^3.5.0"
,
"devDependencies":
"@storybook/addon-actions": "^4.0.4",
"@storybook/addon-links": "^4.0.4",
"@storybook/addons": "^4.0.4",
"@storybook/react-native": "^4.0.4",
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-preset-expo": "^5.0.0",
"babel-runtime": "^6.26.0",
"prop-types": "^15.6.2",
"react-dom": "16.5.0"
Below is the React Native Expo App package.json
"name": "my-app",
"version": "0.0.1",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts":
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject"
,
"dependencies":
"expo": "^31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-paper": "^2.2.4",
"ui-components": "../storybook/"
,
"devDependencies":
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-preset-expo": "^5.0.0",
"babel-runtime": "^6.26.0",
"prop-types": "^15.6.2",
"react-dom": "16.5.0"
I have seen some posts showing related to watchman but watchman is not being used here... so need some alternate
reactjs react-native expo
add a comment |
Getting below error while trying to run react native expo project.
[19:40:00] (node:7766) UnhandledPromiseRejectionWarning: Error: jest-haste-map: @providesModule naming collision:
[19:40:00] Duplicate module name: react-native-cli
[19:40:00] Paths: /home/Desktop/projects/app/storybook/node_modules/react-native/react-native-cli/package.json collides with
/home/Desktop/projects/app/vendor-mobile/node_modules/react-native/react-native-cli/package.json
[19:40:00]
[19:40:00] This error is caused by a @providesModule declaration with the same name across two different files.
[19:40:00] at setModule (/home/Desktop/projects/app/vendor-mobile/node_modules/jest-haste-map/build/index.js:462:17)
[19:40:00] at workerReply (/home/Desktop/projects/app/vendor-mobile/node_modules/jest-haste-map/build/index.js:512:9)
[19:40:00] at <anonymous>
[19:40:00] at process._tickCallback (internal/process/next_tick.js:188:7)
..............
..............
We have 2 projects (React Native Expo) and (React Native Expo Storybook) both of which has react-native
modules.
Below is the Storybook Expo App package.json
"name": "ui-components",
"version": "0.0.1",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts":
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject",
"storybook": "storybook start"
,
"dependencies":
"expo": "^31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-material-textfield": "^0.12.0",
"react-native-paper": "^2.2.4",
"react-native-progress": "^3.5.0"
,
"devDependencies":
"@storybook/addon-actions": "^4.0.4",
"@storybook/addon-links": "^4.0.4",
"@storybook/addons": "^4.0.4",
"@storybook/react-native": "^4.0.4",
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-preset-expo": "^5.0.0",
"babel-runtime": "^6.26.0",
"prop-types": "^15.6.2",
"react-dom": "16.5.0"
Below is the React Native Expo App package.json
"name": "my-app",
"version": "0.0.1",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts":
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject"
,
"dependencies":
"expo": "^31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-paper": "^2.2.4",
"ui-components": "../storybook/"
,
"devDependencies":
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-preset-expo": "^5.0.0",
"babel-runtime": "^6.26.0",
"prop-types": "^15.6.2",
"react-dom": "16.5.0"
I have seen some posts showing related to watchman but watchman is not being used here... so need some alternate
reactjs react-native expo
add a comment |
Getting below error while trying to run react native expo project.
[19:40:00] (node:7766) UnhandledPromiseRejectionWarning: Error: jest-haste-map: @providesModule naming collision:
[19:40:00] Duplicate module name: react-native-cli
[19:40:00] Paths: /home/Desktop/projects/app/storybook/node_modules/react-native/react-native-cli/package.json collides with
/home/Desktop/projects/app/vendor-mobile/node_modules/react-native/react-native-cli/package.json
[19:40:00]
[19:40:00] This error is caused by a @providesModule declaration with the same name across two different files.
[19:40:00] at setModule (/home/Desktop/projects/app/vendor-mobile/node_modules/jest-haste-map/build/index.js:462:17)
[19:40:00] at workerReply (/home/Desktop/projects/app/vendor-mobile/node_modules/jest-haste-map/build/index.js:512:9)
[19:40:00] at <anonymous>
[19:40:00] at process._tickCallback (internal/process/next_tick.js:188:7)
..............
..............
We have 2 projects (React Native Expo) and (React Native Expo Storybook) both of which has react-native
modules.
Below is the Storybook Expo App package.json
"name": "ui-components",
"version": "0.0.1",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts":
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject",
"storybook": "storybook start"
,
"dependencies":
"expo": "^31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-material-textfield": "^0.12.0",
"react-native-paper": "^2.2.4",
"react-native-progress": "^3.5.0"
,
"devDependencies":
"@storybook/addon-actions": "^4.0.4",
"@storybook/addon-links": "^4.0.4",
"@storybook/addons": "^4.0.4",
"@storybook/react-native": "^4.0.4",
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-preset-expo": "^5.0.0",
"babel-runtime": "^6.26.0",
"prop-types": "^15.6.2",
"react-dom": "16.5.0"
Below is the React Native Expo App package.json
"name": "my-app",
"version": "0.0.1",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts":
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject"
,
"dependencies":
"expo": "^31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-paper": "^2.2.4",
"ui-components": "../storybook/"
,
"devDependencies":
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-preset-expo": "^5.0.0",
"babel-runtime": "^6.26.0",
"prop-types": "^15.6.2",
"react-dom": "16.5.0"
I have seen some posts showing related to watchman but watchman is not being used here... so need some alternate
reactjs react-native expo
Getting below error while trying to run react native expo project.
[19:40:00] (node:7766) UnhandledPromiseRejectionWarning: Error: jest-haste-map: @providesModule naming collision:
[19:40:00] Duplicate module name: react-native-cli
[19:40:00] Paths: /home/Desktop/projects/app/storybook/node_modules/react-native/react-native-cli/package.json collides with
/home/Desktop/projects/app/vendor-mobile/node_modules/react-native/react-native-cli/package.json
[19:40:00]
[19:40:00] This error is caused by a @providesModule declaration with the same name across two different files.
[19:40:00] at setModule (/home/Desktop/projects/app/vendor-mobile/node_modules/jest-haste-map/build/index.js:462:17)
[19:40:00] at workerReply (/home/Desktop/projects/app/vendor-mobile/node_modules/jest-haste-map/build/index.js:512:9)
[19:40:00] at <anonymous>
[19:40:00] at process._tickCallback (internal/process/next_tick.js:188:7)
..............
..............
We have 2 projects (React Native Expo) and (React Native Expo Storybook) both of which has react-native
modules.
Below is the Storybook Expo App package.json
"name": "ui-components",
"version": "0.0.1",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts":
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject",
"storybook": "storybook start"
,
"dependencies":
"expo": "^31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-material-textfield": "^0.12.0",
"react-native-paper": "^2.2.4",
"react-native-progress": "^3.5.0"
,
"devDependencies":
"@storybook/addon-actions": "^4.0.4",
"@storybook/addon-links": "^4.0.4",
"@storybook/addons": "^4.0.4",
"@storybook/react-native": "^4.0.4",
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-preset-expo": "^5.0.0",
"babel-runtime": "^6.26.0",
"prop-types": "^15.6.2",
"react-dom": "16.5.0"
Below is the React Native Expo App package.json
"name": "my-app",
"version": "0.0.1",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts":
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject"
,
"dependencies":
"expo": "^31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-paper": "^2.2.4",
"ui-components": "../storybook/"
,
"devDependencies":
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-preset-expo": "^5.0.0",
"babel-runtime": "^6.26.0",
"prop-types": "^15.6.2",
"react-dom": "16.5.0"
I have seen some posts showing related to watchman but watchman is not being used here... so need some alternate
reactjs react-native expo
reactjs react-native expo
asked Nov 15 '18 at 14:22
SharathSharath
710827
710827
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53321533%2fexpo-providesmodule-declaration-with-the-same-name-across-two-different-files%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53321533%2fexpo-providesmodule-declaration-with-the-same-name-across-two-different-files%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown