-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Angular SSR - proxyRequestMethods(Index, '_index', IDBIndex, [ ^ ReferenceError: IDBIndex is not defined #3102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
@limes thanks mate! |
did you solve this problem friend @GoceBogdanovski ? I'm following the issu 2475 and there they said it was here on angular/universal I opened issu 3113 here in angular/universal and still no response |
I am facing same issue
after I upgrade the Angular version from 12.0.1 to 13.1.3. Before this I was facing issue with node-fetch ( data-uri-to-buffer Now I am getting IDBIndex issue. my package.json
|
@ALL do you have any news other than downgrading? |
Well @miguelsmuller i just found solution but it is completely manual.
At the listeners side:
and in firebase.service.ts i have this:
and these scripts in the head of the index.html <script defer src="https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js"></script> <script defer src="https://www.gstatic.com/firebasejs/8.10.1/firebase-auth.js"></script> <script defer src="https://www.gstatic.com/firebasejs/8.10.1/firebase-analytics.js"></script>it is stupid but it works :) |
Is there any update for this issue? |
|
Closing since we should redirect to the JS SDK issue linked above, pinning. |
I still cant find a solution. Did i over look it? |
Our team has all the latest versions of NX and NG (13.2) we were able to get rid of this problem by downgrading one package.
|
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"
}
The text was updated successfully, but these errors were encountered: