[Solved] Property or signature expected when compiling TS

report errors:

error TS1131: Property or signature expected.


The reason is that get is used in the TS interface and node_Modules are placed outside the package project and TSC – P is used   Tsconfig.json compilation. Using TSC compilation alone does not have this problem

The solution is to choose one from the other

1. Set node_Modules install one in the package project

2. Install typescript globally

Similar Posts: