-
Notifications
You must be signed in to change notification settings - Fork 980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apphosting emulator startCommand doesn't work with Angular #8388
Comments
Hey @markgoho, thanks for the detailed report and for sharing your observations. It looks like the error message is being raised from firebase-tools/src/emulator/apphosting/developmentServer.ts Lines 35 to 44 in 6c7245f
The error occurs in firebase-tools/src/emulator/apphosting/developmentServer.ts Lines 19 to 33 in 6c7245f
Could you let us know if you're using a different package manager?
Let me try to ask our engineering team to see if we could provide a clearer description of what the |
Adding a clarifying comment here, We don't support specialized monorepo tooling like |
[REQUIRED] Environment info
firebase-tools: 14.0.1
Platform: Windows 11
[REQUIRED] Test case
I've got an angular application that I've successfully deployed to app hosting, but when I run the local emulator, there's no sign of it working.
[REQUIRED] Steps to reproduce
Initialized emulators and got this config:
but when I run
firebase emulators:start
I get
Error: Failed to auto-detect your project's start command. Consider manually setting the start command by setting `firebase.json#emulators.apphosting.startCommand`
There doesn't appear to be any documentation on what this startCommand should do. Build? Serve? (I've tried both and neither work)
There seems to also be a discrepancy between "autodetect start command" in emulators and what the apphosting deployment does which seems to be some magic of detecting the framework and building the application. Again, this worked without issue in the real deployment, I guess we're just missing some parity with how the emulators work.
[REQUIRED] Expected behavior
Initializing apphosting emulators should "just work" the same way remote apphosting "just works", OR better documentation should be provided on how local emulation of apphosting works so devs know what the startcommand should be and how it interacts with the apphosting.
[REQUIRED] Actual behavior
Nothing works, e.g. no startCommand provided (auto-detect), nx serve nx build
The text was updated successfully, but these errors were encountered: