Skip to content

error TS5056: Cannot write file '/home/node/api/dist/src/datasources/admin.datasource.d.ts' because it would be overwritten by multiple input files #35189

Closed

Description

hi DEVS i get this problem after i try to run my server API , im using #angular 7 and #loopback
it seems like the is 2 fils pointing in the same datasources of base (client) and the same thing
happen to the (Admin database)
i found the 5054 erreur but is not the same my error is TS5056 ...
i thing is Typescript version ..im not sure any help plz

------this is my Api Tscofig

**{ "extends": "./node_modules/@loopback/build/config/tsconfig.common.json", "include": [ "src", "test" ], "exclude": [ "node_modules/**", "packages/*/node_modules/**", "examples/*/node_modules/**", "**/*.d.ts" ] }

**

------- the error is in the DIST->src ->datasources .... file auto generated by ** npm start **

github

Activity

  1. HamzaMansouri7 commented on Nov 19, 2019

    @HamzaMansouri7
    Author

    tsconfig

  2. AlCalzone commented on Nov 19, 2019

    @AlCalzone
    Contributor

    I've noticed that some of my projects now include *.d.ts outputs for json files. Since you have .ts and .json files with the same name, I guess that's the reason you're seeing the error.

    I'm not sure if that behavior is intended.

  3. added
    Duplicate
    on Nov 19, 2019
  4. RyanCavanaugh commented on Nov 19, 2019

    @RyanCavanaugh
    Member

    See #34962 - JSON from .d.ts will be disabled in 3.7.3

  5. typescript-bot commented on Nov 22, 2019

    @typescript-bot
    Contributor

    This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

  6. diegoazh commented on Dec 29, 2019

    @diegoazh

    Like AlCalzone said the reason is files .ts and .json with the same name; I added at the and of the name .config.json in order to avoid this errors in datasources files.
    Thank you very much AlCalzone

  7. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions