diff --git a/src/bp-loader.php b/src/bp-loader.php
index 0e533ff..0db5e64 100644
--- a/src/bp-loader.php
+++ b/src/bp-loader.php
@@ -617,9 +617,16 @@ class BuddyPress {
 			return;
 		}
 
-		// Sanity check 2 - Check if component is active before loading class.
-		// Skip if PHPUnit is running.
-		if ( 'core' !== $component && false === bp_is_active( $component ) && false === function_exists( 'tests_add_filter' ) ) {
+		/*
+		 * Sanity check 2 - Check if component is active before loading class.
+		 * Skip if PHPUnit is running, or BuddyPress is installing for the first time.
+		 */
+		if (
+			'core' !== $component &&
+			! bp_is_active( $component ) &&
+			! function_exists( 'tests_add_filter' ) &&
+			! get_transient( '_bp_is_new_install' )
+		) {
 			return;
 		}
 
