@react-native-firebase/app
error: bundling failed: Error: Unable to resolve module `@react-native-firebase/app` from `/Users/primetimetran/Desktop/rnTodoList/App.js`: Module `@react-native-firebase/app` does not exist in the Haste module map
I built this app following this guide(awesome work btw guys).
I used the starter app.
I even made a short video to demonstrate.
However, after I began updating the app to hooks today I started getting this error.
I didn't change package.json
or anything. I've tried removing package-lock.json
& npm installing again.
Any suggestions?
<!-- Provide the contents of key project files which will help to debug -->
<!-- For Example: -->
<!-- - iOS: Podfile
contents. -->
<!-- - Android: android/build.gradle
contents. -->
<!-- - Android: android/app/build.gradle
contents. -->
<!-- - Android: AndroidManifest.xml
contents. -->
<!-- ADD THE CONTENTS OF THE FILES IN THE PROVIDED CODE BLOCKS BELOW -->
<details><summary>Click To Expand</summary> <p>
ios/Podfile
:# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'rnTodoList' do
# Pods for rnTodoList
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Required by RNFirebase
pod 'Firebase/Core', '~> 6.3.0'
# [OPTIONAL PODS] - comment out pods for firebase products you won't be using.
# pod 'Firebase/AdMob', '~> 6.3.0'
pod 'Firebase/Auth', '~> 6.3.0'
pod 'Firebase/Database', '~> 6.3.0'
pod 'Firebase/Functions', '~> 6.3.0'
pod 'Firebase/DynamicLinks', '~> 6.3.0'
pod 'Firebase/Firestore', '~> 6.3.0'
pod 'Firebase/Messaging', '~> 6.3.0'
pod 'Firebase/RemoteConfig', '~> 6.3.0'
pod 'Firebase/Storage', '~> 6.3.0'
pod 'Firebase/Performance', '~> 6.3.0'
pod 'Fabric', '~> 1.10.2'
pod 'Crashlytics', '~> 3.13.2'
end
target 'rnTodoList-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for rnTodoList-tvOS
target 'rnTodoList-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
AppDelegate.m
:/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "AppDelegate.h"
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <Firebase.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[FIRApp configure];
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"rnTodoList"
initialProperties:nil];
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [UIViewController new];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
return YES;
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}
@end
</p> </details>
<details><summary>Click To Expand</summary> <p>
<!--- Mark any options that apply below -->
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
</p> </details>
<details><summary>Click To Expand</summary> <p>
react-native info
output:
<!-- Please run react-native info
on your terminal and paste the contents into the code block below -->
React Native Environment Info:
System:
OS: macOS 10.14.5
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Memory: 1.37 GB / 32.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.15.2 - /usr/local/opt/node@10/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/opt/node@10/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
IDEs:
Android Studio: 3.4 AI-183.5429.30.34.5452501
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.9 => 0.59.9
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-firebase
version you're using that has this issue:
^5.5.4
Firebase
module(s) you're using that has the issue:
@react-native-firebase/app
TypeScript
?
No
</p> </details>
Thanks for your awesome work so far team!
I'm getting this with the messaging module on react-native 0.60.3:
error: bundling failed: Error: Unable to resolve module `react-native-firebase/messaging` from `/Users/leonardwitteler/Repositories/Yotribe/v2/v0.60.3/src/util/firebase-messaging.js`: Module `react-native-firebase/messaging` does not exist in the Haste module map