Skip to content

Unable to deploy on windows using ng deploy #3250

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

Open
sidsaxena0 opened this issue Jul 19, 2022 · 1 comment
Open

Unable to deploy on windows using ng deploy #3250

sidsaxena0 opened this issue Jul 19, 2022 · 1 comment

Comments

@sidsaxena0
Copy link

Version info

Angular: 13.3.0

Firebase: 9.6.10

AngularFire: 7.2.1

Node: 16.13.2

Operating System: Windows 11

How to reproduce these conditions

Unable to deploy on windows using ng deploy

Hi, when I am trying to deploy the my app which have SSR enabled for firebase functions using ng deploy it just doesn't work.
Deployment just fails with error message : Your code contains errors while deploying function ssr_app
After many hours of searching I found that it is creating wrong package.json file it has a dependency stating myprojectname with value file:../../.. which looks like this exactly "my-project": "file:../../.."
This error is only being produced on windows machine, same doesn't happen on mac. Also manually removing that line and running firebase deploy does the job.

Debug output

** Errors in the JavaScript console **

** Output from firebase.database().enableLogging(true); **

** Screenshots **
angular-err

Expected behavior

It should generate package.json correctly and invalid dependency should not be added in it.

Actual behavior

It is adding an invalid dependency in generated function directory's package.json file which looks like this "my-project": "file:../../.."

@jasonbdt
Copy link

jasonbdt commented Aug 5, 2022

Problem still present in latest version 7.4.1. Issue is duplicate of #3025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants