-
Notifications
You must be signed in to change notification settings - Fork 358
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
error TS2374: Duplicate index signature for type 'string' #2190
Comments
Hi @nicklbaert, based on the error message, seems like some functions has been imported from different sources. Could you please double check all the files and make sure the importation are the same? Meanwhile, there is a similar issue ticket: #734. Adding |
Hey @milaGGL, thank you for your time and the quick response. |
With pleasure. So it was working all fine before, but suddenly started crashing overnight without a change. Have you upgraded any packages in your app? |
@milaGGL We had the same CI running without problems 2 days ago. Since then no packages have been changed. Maybe also worth noting, that the failing command |
I had this same problem. It sent me down tsconfig-hell for 4+ hours trying to figure it out. ChatGPT 4 has no clue wtf is happening either. This happened to me because I had a repo with 3 folders; /server /common /worker. They all had firebase-admin package installed (same version), and /server and /worker are both importing from /common. I removed firebase-admin as a dependency in /worker and stopped relying on it, and turned /common into its own local package using a yarn workspace monorepo for all 3, and then had both /worker and /server treat /common as a proper npm-dependency rather than just a folder they both import from. Honestly tsconfig / package.json and all these weird build configurations are just far too complex. 'dev' mode with ts-node and 'prod' mode with node are like two separate conflicting runtime environments that can't agree on how to resolve import paths or dependencies. |
Hi @PaulFidika, thank you for sharing this issue. Would it be possible to provide a minimal code so that I can reproduce it on my end? |
[READ] Step 1: Are you in the right place?
Yes
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
I'm simply trying to run
npm run build
whilst using version 11.8.0 of the firebase-admin node package.Github Actions fails with the following output:
Relevant Code:
The text was updated successfully, but these errors were encountered: