Skip to content

Angular SSR - proxyRequestMethods(Index, '_index', IDBIndex, [ ^ ReferenceError: IDBIndex is not defined #3102

Closed
@GoceBogdanovski

Description

@GoceBogdanovski

Hello.
I just found out that upgrading firebase package from 9.4.0 to 9.6.1 on my Angular 13.1.1 SSR project caused a issue with starting the app under IIS node instance.
The error is this: proxyRequestMethods(Index, '_index', IDBIndex, [ ^ ReferenceError: IDBIndex is not defined

This packages are all good. To replicate the bug, just update the version of the firebase package to 9.6.1 and try to run the script dev:ssr
I have tried with @angular/fire but the result was same.

"scripts": {
"ng": "ng",
"start": "ng serve -o",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"dev:ssr": "ng run your-proj-name:serve-ssr",
"serve:ssr": "node dist/your-proj-name/server/main.js",
"build:ssr": "ng build --configuration production && ng run your-proj-name:server:production",
"prerender": "ng run your-proj-name:prerender"
},
"dependencies": {
"@angular/animations": "^13.1.1",
"@angular/common": "^13.1.1",
"@angular/compiler": "^13.1.1",
"@angular/core": "^13.1.1",
"@angular/forms": "^13.1.1",
"@angular/google-maps": "^13.1.1",
"@angular/platform-browser": "^13.1.1",
"@angular/platform-browser-dynamic": "^13.1.1",
"@angular/platform-server": "^13.1.1",
"@angular/router": "^13.1.1",
"@nguniversal/common": "^13.0.1",
"@nguniversal/express-engine": "^13.0.1",
"@ngx-pwa/local-storage": "^13.0.2",
"@types/mixpanel-browser": "^2.35.8",
"express": "^4.17.1",
"firebase": "9.4.0",
"flatpickr": "^4.6.9",
"mixpanel-browser": "^2.42.0",
"ngx-seo": "^5.3.0",
"rxjs": "^7.4.0",
"tslib": "^2.3.1",
"zone.js": "^0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^13.1.2",
"@angular/cli": "^13.1.2",
"@angular/compiler-cli": "^13.1.1",
"@nguniversal/builders": "^13.0.1",
"@types/express": "^4.17.13",
"@types/google.maps": "^3.47.1",
"@types/jasmine": "^3.10.2",
"@types/node": "^16.11.12",
"jasmine-core": "^3.9.0",
"jasmine-spec-reporter": "^7.0.0",
"karma": "^6.3.9",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.1.0",
"karma-jasmine": "^4.0.1",
"karma-jasmine-html-reporter": "^1.7.0",
"typescript": "^4.4.4"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions