Error: Bundling failed - While trying to resolve module 'react-native-firebase'
I'm trying to use Firebase Authentication and am getting the below error when running react-native run-android
. The error is happening in the node terminal that pops up when react-nativescripts..local-clicli.js script runs. I'm following the docs for the initial setup, android setup, and auth setup. Where is the dist/ folder supposed to come from? Thanks in advance!
error: bundling failed: Error: While trying to resolve module react-native-firebase
from file D:TempprojectsappsrccomponentsLoginView.js
, the package D:Tempprojectsappnode_modulesreact-native-firebasepackage.json
was successfully found. However, this package itself specifies a main
module field that could not be resolved (D:Tempprojectsappnode_modulesreact-native-firebasedistindex.js
. Indeed, none of these files exist:
D:Tempprojectsappnode_modulesreact-native-firebasedistindex.js(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
D:Tempprojectsappnode_modulesreact-native-firebasedistindex.jsindex(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
at ResolutionRequest.resolveDependency (D:Tempprojectsappnode_modulesmetrosrcnode-hasteDependencyGraphResolutionRequest.js:61:15)
at DependencyGraph.resolveDependency (D:Tempprojectsappnode_modulesmetrosrcnode-hasteDependencyGraph.js:219:16)
at Object.resolve (D:Tempprojectsappnode_modulesmetrosrclibtransformHelpers.js:141:30)
at dependencies.map.result (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:373:31)
at Array.map ()
at resolveDependencies (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:369:18)
at D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:188:33
at Generator.next ()
at step (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:298:30)
at D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:309:15
package.json:
{"dependencies":
"react": "^16.6.0-alpha.8af6728",
"react-native": "0.57.4",
"react-native-firebase": "^5.1.0"
,
"peerDependencies":
"react": "^16.5.0"
,
"devDependencies":
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.49.0",
"react-test-renderer": "16.6.0-alpha.8af6728"
android reactjs firebase react-native react-native-firebase
add a comment |
I'm trying to use Firebase Authentication and am getting the below error when running react-native run-android
. The error is happening in the node terminal that pops up when react-nativescripts..local-clicli.js script runs. I'm following the docs for the initial setup, android setup, and auth setup. Where is the dist/ folder supposed to come from? Thanks in advance!
error: bundling failed: Error: While trying to resolve module react-native-firebase
from file D:TempprojectsappsrccomponentsLoginView.js
, the package D:Tempprojectsappnode_modulesreact-native-firebasepackage.json
was successfully found. However, this package itself specifies a main
module field that could not be resolved (D:Tempprojectsappnode_modulesreact-native-firebasedistindex.js
. Indeed, none of these files exist:
D:Tempprojectsappnode_modulesreact-native-firebasedistindex.js(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
D:Tempprojectsappnode_modulesreact-native-firebasedistindex.jsindex(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
at ResolutionRequest.resolveDependency (D:Tempprojectsappnode_modulesmetrosrcnode-hasteDependencyGraphResolutionRequest.js:61:15)
at DependencyGraph.resolveDependency (D:Tempprojectsappnode_modulesmetrosrcnode-hasteDependencyGraph.js:219:16)
at Object.resolve (D:Tempprojectsappnode_modulesmetrosrclibtransformHelpers.js:141:30)
at dependencies.map.result (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:373:31)
at Array.map ()
at resolveDependencies (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:369:18)
at D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:188:33
at Generator.next ()
at step (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:298:30)
at D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:309:15
package.json:
{"dependencies":
"react": "^16.6.0-alpha.8af6728",
"react-native": "0.57.4",
"react-native-firebase": "^5.1.0"
,
"peerDependencies":
"react": "^16.5.0"
,
"devDependencies":
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.49.0",
"react-test-renderer": "16.6.0-alpha.8af6728"
android reactjs firebase react-native react-native-firebase
add a comment |
I'm trying to use Firebase Authentication and am getting the below error when running react-native run-android
. The error is happening in the node terminal that pops up when react-nativescripts..local-clicli.js script runs. I'm following the docs for the initial setup, android setup, and auth setup. Where is the dist/ folder supposed to come from? Thanks in advance!
error: bundling failed: Error: While trying to resolve module react-native-firebase
from file D:TempprojectsappsrccomponentsLoginView.js
, the package D:Tempprojectsappnode_modulesreact-native-firebasepackage.json
was successfully found. However, this package itself specifies a main
module field that could not be resolved (D:Tempprojectsappnode_modulesreact-native-firebasedistindex.js
. Indeed, none of these files exist:
D:Tempprojectsappnode_modulesreact-native-firebasedistindex.js(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
D:Tempprojectsappnode_modulesreact-native-firebasedistindex.jsindex(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
at ResolutionRequest.resolveDependency (D:Tempprojectsappnode_modulesmetrosrcnode-hasteDependencyGraphResolutionRequest.js:61:15)
at DependencyGraph.resolveDependency (D:Tempprojectsappnode_modulesmetrosrcnode-hasteDependencyGraph.js:219:16)
at Object.resolve (D:Tempprojectsappnode_modulesmetrosrclibtransformHelpers.js:141:30)
at dependencies.map.result (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:373:31)
at Array.map ()
at resolveDependencies (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:369:18)
at D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:188:33
at Generator.next ()
at step (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:298:30)
at D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:309:15
package.json:
{"dependencies":
"react": "^16.6.0-alpha.8af6728",
"react-native": "0.57.4",
"react-native-firebase": "^5.1.0"
,
"peerDependencies":
"react": "^16.5.0"
,
"devDependencies":
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.49.0",
"react-test-renderer": "16.6.0-alpha.8af6728"
android reactjs firebase react-native react-native-firebase
I'm trying to use Firebase Authentication and am getting the below error when running react-native run-android
. The error is happening in the node terminal that pops up when react-nativescripts..local-clicli.js script runs. I'm following the docs for the initial setup, android setup, and auth setup. Where is the dist/ folder supposed to come from? Thanks in advance!
error: bundling failed: Error: While trying to resolve module react-native-firebase
from file D:TempprojectsappsrccomponentsLoginView.js
, the package D:Tempprojectsappnode_modulesreact-native-firebasepackage.json
was successfully found. However, this package itself specifies a main
module field that could not be resolved (D:Tempprojectsappnode_modulesreact-native-firebasedistindex.js
. Indeed, none of these files exist:
D:Tempprojectsappnode_modulesreact-native-firebasedistindex.js(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
D:Tempprojectsappnode_modulesreact-native-firebasedistindex.jsindex(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
at ResolutionRequest.resolveDependency (D:Tempprojectsappnode_modulesmetrosrcnode-hasteDependencyGraphResolutionRequest.js:61:15)
at DependencyGraph.resolveDependency (D:Tempprojectsappnode_modulesmetrosrcnode-hasteDependencyGraph.js:219:16)
at Object.resolve (D:Tempprojectsappnode_modulesmetrosrclibtransformHelpers.js:141:30)
at dependencies.map.result (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:373:31)
at Array.map ()
at resolveDependencies (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:369:18)
at D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:188:33
at Generator.next ()
at step (D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:298:30)
at D:Tempprojectsappnode_modulesmetrosrcDeltaBundlertraverseDependencies.js:309:15
package.json:
{"dependencies":
"react": "^16.6.0-alpha.8af6728",
"react-native": "0.57.4",
"react-native-firebase": "^5.1.0"
,
"peerDependencies":
"react": "^16.5.0"
,
"devDependencies":
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.49.0",
"react-test-renderer": "16.6.0-alpha.8af6728"
android reactjs firebase react-native react-native-firebase
android reactjs firebase react-native react-native-firebase
asked Nov 12 '18 at 23:18
halshinghalshing
265
265
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I got this working by re-running react-native link react-native-firebase
. The /dist folder showed up in the node_modules/react-native-firebase directory once this command runs successfully.
add a comment |
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%2f53271503%2ferror-bundling-failed-while-trying-to-resolve-module-react-native-firebase%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I got this working by re-running react-native link react-native-firebase
. The /dist folder showed up in the node_modules/react-native-firebase directory once this command runs successfully.
add a comment |
I got this working by re-running react-native link react-native-firebase
. The /dist folder showed up in the node_modules/react-native-firebase directory once this command runs successfully.
add a comment |
I got this working by re-running react-native link react-native-firebase
. The /dist folder showed up in the node_modules/react-native-firebase directory once this command runs successfully.
I got this working by re-running react-native link react-native-firebase
. The /dist folder showed up in the node_modules/react-native-firebase directory once this command runs successfully.
answered Nov 15 '18 at 13:30
halshinghalshing
265
265
add a comment |
add a comment |
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%2f53271503%2ferror-bundling-failed-while-trying-to-resolve-module-react-native-firebase%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