Skip to content

"error TS5056 overwritten by multiple input files" found after upgraded loopback core to 1.10.6 and typescript to 3.7.2 #4119

Closed
@wayahead

Description

@wayahead
  1. upgraded loopback as below:
   "dependencies": {
-    "@loopback/boot": "^1.5.10",
-    "@loopback/context": "^1.23.4",
-    "@loopback/core": "^1.10.6",
-    "@loopback/openapi-v3": "^1.10.0",
-    "@loopback/repository": "^1.15.3",
-    "@loopback/rest": "^1.22.0",
-    "@loopback/rest-explorer": "^1.4.3",
-    "@loopback/service-proxy": "^1.3.10",
+    "@loopback/boot": "^1.5.11",
+    "@loopback/context": "^1.23.5",
+    "@loopback/core": "^1.10.7",
+    "@loopback/openapi-v3": "^1.10.1",
+    "@loopback/repository": "^1.15.4",
+    "@loopback/rest": "^1.23.0",
+    "@loopback/rest-explorer": "^1.4.4",
+    "@loopback/service-proxy": "^1.3.11",
   },
   "devDependencies": {
-    "@loopback/build": "^2.0.15",
-    "@loopback/eslint-config": "^4.1.3",
-    "@loopback/testlab": "^1.9.3",
+    "@loopback/build": "^2.0.16",
+    "@loopback/eslint-config": "^4.1.4",
+    "@loopback/testlab": "^1.9.4",
-    "typescript": "~3.6.4"
+    "typescript": "~3.7.2"
   }

I clean and rebuild the project, got the below error:

error TS5056: Cannot write file '/home/wayahead/workspace/loopback/pinwheel/besim/dist/datasources/client.datasource.d.ts' because it would be overwritten by multiple input files.

  1. if I roll typescript back 3.6.4, then there is no error. but if checked into @loopback/build/package.json, typescript 3.7.2 is found.

The project and client.datasource.ts was generated by previous version of loopback.

So how to solve this issue caused by loopback upgrading?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions