@angular/build: TS2307: Cannot find module 'firebase/compat'
- 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ả
I currently have an Angular 20 application with storage.
I tried to migrate to the new builder system and after running the migration script I get:
>
X [ERROR] TS2307: Cannot find module 'firebase/compat' or its corresponding type declarations. [plugin angular-compiler]
node_modules/.pnpm/@angular+fire@20.0.1_b3d6211399b528bde26c95436c0ed9a1/node_modules/@angular/fire/compat/storage/index.d.ts:9:33:
9 │ import * as firebase_compat from 'firebase/compat';
╵ ~~~~~~~~~~~~~~~~~
With `@angular-devkit/build-angular` it works fine.
Hướng dẫn đóng góp
Hướng nghiên cứu
Tái hiện quá trình migration Angular 20 với @angular/fire compat storage và so sánh builder mới với @angular-devkit/build-angular. Bắt đầu từ import firebase/compat trong @angular/fire/compat/storage/index.d.ts được đề cập và output của quá trình migration builder. Hoàn thành khi ứng dụng đã migration build được mà không có TS2307.
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
- build-system
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100