cancel
Showing results for 
Search instead for 
Did you mean: 

Using Typescript in the CAP Project

0 Kudos
139

Dear Experts

I am creating a service in the Cloud application programming . I implemented the Event handlers in typescript and run the service using cds-ts watch. the service was working fine. I added an UI5 application in the App folder of type freestyle. While adding the project, i used the advanced option, choosing type script. I also selected the option to allow cds-ui5-plugin to make changes to the package.json. After i created the UI5 application, when i start the CAP server using cds-ts i am getting the error SELECT is not found in cds types. 

arunkrishnamoorthy1988_0-1725776102672.png

Following are the changes i see in the package.json 

arunkrishnamoorthy1988_1-1725776235473.png

 

How can i correctly setup the typescript project for the Ui5 and CAP development? after removing the changes in package.json and remove the node_modules folder and reinstall the app is working fine. What is the correct procedure to set up the typescript development.

0 Kudos
For those who are looking for answer to similar problem. i did not find a solution. The work around i did is to run the tsc command to convert the ts files to javascript and then continue with debugging.

Accepted Solutions (0)

Answers (0)