You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error TS5056: Cannot write file '/home/node/api/dist/src/datasources/admin.datasource.d.ts' because it would be overwritten by multiple input files
#4173
Closed
HamzaMansouri7 opened this issue
Nov 20, 2019
· 3 comments
Hi #4170 Loopback DEVS i get this problem after i try to run my server API , im using #angular 7 and #loopback error reference :TS5056
i'm sure that problem in typescript version ..i'm using (3.4.5) right now , i have tried with many version like 3.8.1 ==> error in --target flag
3.5.1===>error in extends must be rooted or relative
1.7.5===> include & exclude Error in Tsconfig
i need help here guys
------this is my Api Tscofig { "$schema": "http://json.schemastore.org/tsconfig", "extends": "@loopback/build/config/tsconfig.common.json", "include": [ "src", "test", "index.ts" ], "exclude": [ "node_modules/**", "packages/*/node_modules/**", "**/*.d.ts" ] }
The text was updated successfully, but these errors were encountered:
You've mentioned that you're using typescript@3.8.1. I've checked Typescript's published versions and found no reference to the version mentioned. Could you clarify on that?
If that's the case, it can be resolved by renaming all *.datasource.json files to *.datasource.config.json and then updating all references to those affected files.
The installation of @loopback/cli should be updated to the latest version which has resolved this issue for future generated datasources.
If that's the case, it can be resolved by renaming all *.datasource.json files to *.datasource.config.json and then updating all references to those affected files.
Thanks, I had the same issue @achrinza 's answer resolved this for me
Hi #4170 Loopback DEVS i get this problem after i try to run my server API , im using #angular 7 and #loopback error reference :TS5056
i'm sure that problem in typescript version ..i'm using (3.4.5) right now , i have tried with many version like 3.8.1 ==> error in --target flag
3.5.1===>error in extends must be rooted or relative
1.7.5===> include & exclude Error in Tsconfig
i need help here guys
------this is my Api Tscofig
{ "$schema": "http://json.schemastore.org/tsconfig", "extends": "@loopback/build/config/tsconfig.common.json", "include": [ "src", "test", "index.ts" ], "exclude": [ "node_modules/**", "packages/*/node_modules/**", "**/*.d.ts" ] }
The text was updated successfully, but these errors were encountered: