Skip to content

Commit 249d35a

Browse files
jamesdanielsTrCaM
authored andcommitted
Fix for missing NPM dependencies (#8624)
1 parent 7653735 commit 249d35a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
- Fixed crash when starting the App Hosting emulator in certain applications (#8624)
12
- Fixed issue where, with `webframeworks` enabled, `firebase init hosting` re-prompts users for source. (#8587)
23
- Update typescript version in functions template to avoid build issue with @google-cloud/storage depedency (#8194)

src/emulator/apphosting/serve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ async function tripFirebasePostinstall(
224224
return;
225225
}
226226
const npmLsResults = JSON.parse(npmLs.stdout.toString().trim());
227-
const dependenciesToSearch: Dependency[] = Object.values(npmLsResults.dependencies);
227+
const dependenciesToSearch: Dependency[] = Object.values(npmLsResults.dependencies || {});
228228
const firebaseUtilPaths: string[] = [];
229229
for (const dependency of dependenciesToSearch) {
230230
if (

0 commit comments

Comments
 (0)