angular / angular/angularfire

Module is not defined error with Angular 16 esbuild

未关闭
#3,367 11 条评论 15 个 reaction 已指派 1 人 已被 @davideast 认领 在 GitHub 查看
comp: compat needs: recheck type: bug version: legacy (v7-v16)
主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
22 小时 28 分钟
30 天内合并 PR
6

描述

### Version info

**Angular:** 16.0.3

**Firebase:** 9.0.0

**AngularFire:** 7.6.1

### How to reproduce these conditions

Enable esbuild in angular.json
```
"build": {
"builder": "@angular-devkit/build-angular:browser-esbuild",
"options": {
```
build:
`ng build && ng serve`

### Debug output
```
Uncaught ReferenceError: module is not defined
Angular
angular-fire-compat.js:166:17
```

### Expected behavior

I'm expecting the app to correctly work.
I'm aware that `The esbuild-based browser application builder ('browser-esbuild') is currently in developer preview`.

### Actual behavior
White page and console error.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。