-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Firebase project build and serve are not working #244
Comments
@alexstanbury |
try also the default serve target generated by the plugin should run the above command as part of the serve command, but I guess it isn't for some reason 🤔 |
I changed the port of hosting to 5002 to avoid the mac os system conflict, thanks @esterified (not sure why firebase chose that as the default!) Now, running
The line I think for now I'll just stick to using yarn directly. |
A lot of that killport shenanigans is necessary atm only because Nx doesnt kill processes cleanly, so the emulator continues running after ctrl+c exit |
Using your install instructions from the readme, I run:
npx create-nx-workspace@latest
Which creates a fresh
19.1.2
NX workspace.Then I run:
npx nx g @simondotm/nx-firebase:app my-new-firebase-app --project=my-project-name-here
then:
npx nx g @simondotm/nx-firebase:function my-new-firebase-function --app=my-new-firebase-app
Then I comment in the
helloWorld
function in the function app.According to your docs I should be able to run
npx nx build my-new-firebase-app
and it will build the associated function, but it doesn't, I just get the outputRunning the build for the function itself works fine
npx nx build my-new-firebase-function
.Also, running
npx nx serve my-new-firebase-app
gives the following error output:Running
npx nx emulate my-new-firebase-app
works as expected.This also happens using NX version
18.1.2
.The text was updated successfully, but these errors were encountered: