angular / angular/angularfire

Unable to deploy on windows using ng deploy

Đang mở
#3,250 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
7.8k
Fork
2.2k
Merge trung bình
22 giờ 28 phút
Pull request đã merge (30 ngày)
6

Mô tả

### 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](https://user-images.githubusercontent.com/10049774/179815463-d4197dec-1e16-4be6-9d80-97c39917cb51.jpg)

### 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:../../.."`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Tái hiện ng deploy trên Windows 11 với một ứng dụng Firebase functions bật SSR, sử dụng các phiên bản được liệt kê trong issue. Kiểm tra package.json của thư mục function được tạo và so sánh với việc triển khai trên macOS. Được xem là hoàn tất khi dependency không hợp lệ file:../../.. không được tạo và việc triển khai thành công mà không cần chỉnh sửa thủ công package.json.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, firebase, typescript
Lĩnh vực
cloud, devops
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.