report errors:
error TS1131: Property or signature expected.
reason
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:
- jenkins+sonar-scanner Scan Error: Failed to find ‘typescript’ module.Please check, NODE_PATH contains location of global ‘typescript’ or install locally in your project
- TypeScript error TS1005: ‘;’ expected [How to Solve]
- Ionic Error: Failed to load resource [How to Solve]
- [Solved] Error: No module factory available for dependency type: ContextElementDependency
- Troubleshooting of typescript extended global window error
- Typescript IMPORT Global node_ Modules error
- React + typescript error collection [How to Solve]
- How to Solve ReferenceError: internalBinding is not defined
- Solution to the failure of node rdkafka in docker build
- Local workspace file (‘angular.json’) could not be found.