-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Angular Firebase Error: ENOENT: no such file or directory, open 'google/protobuf/api.proto' #2424
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
Comments
I have created several angular app in order to fix this issue in multiple ways, but I have not been able to fix it. "server": { This solves the issue on the local server when you run dev:ssr. The issue continues when I try to deploy to Firebase. |
go to your functions directory then |
I resolved this issue by downgrading to But now I'm having a different issue. When I run npm run serve:ssr, the app doesn't want to load. But when I comment out my lazy routes, the app works when I serve it. The routes works fine on Not sure what the problem is. |
jdgamble555. There is no functions directory anymore when you ng deploy using @angular/fire. I could deploy the app without firestore. Once I add firestore, that's it, firebase does not accept it. |
when using ng add @angular/fire , no function folder is there , i got the same error when i deploy |
You have a functions folder if you use firebase functions. I think they have not yet fixed a lot of the issues there. I believe they need to add it to |
my answer here #2320 (comment) |
I was able to solve this as follows. First as you've mentioned add The app was deployed successfully. |
i use angular 10.
|
Work-around available & added to our schematics. Might not be needed with newer versions of Firebase now, will investigate. Closing. |
Uh oh!
There was an error while loading. Please reload this page.
Version info
Angular:
8.2.14
Firebase:
AngularFire:
5.4.2
Problem
I'm getting this error with Angular, Firebase and ngUniversal. Everything works fine when I run
ng serve
. But when I runnpm run build:ssr
it builds with no errors. Then when I runnpm run serve:ssr
I get the error below:Steps to set up and reproduce
I installed a fresh Angular app
ng new appName --routing
, then I installed ngUniversal usingng add @nguniversal/express-engine --clientProject=appName
.So I'm running
npm run build:ssr && npm run serve:ssr
. It fails on the serve script with the error above.The text was updated successfully, but these errors were encountered: