Module is not defined error with Angular 16 esbuild
Open
comp: compat
needs: recheck
type: bug
version: legacy (v7-v16)
- Dominant language
- TypeScript
- Stars
- 7.8k
- Forks
- 2.2k
- Avg merge
- 22h 28m
- Merged PRs (30d)
- 6
Description
### 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.
Contributor guide
Assessment
This issue has not been assessed yet.