-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Cannot find name 'SELECT' and 'INSERT' #294
Comments
Hi @LeCongNam , thanks for reporting this issue.
We generally recommend to deploy only transpiled JavaScript in a productive scenario, so types should not play a role once you deploy. If you choose to run TypeScript in a productive scenario, then Best, |
this problem occurs if the npm link ist missing, have a look on other issues... you could solve it with "npm rebuild" You need to find this entry: |
Thanks @daogrady support me. But I confure because |
Thanks you suggest you. But i want npm auto install. I install like @daogrady and fixed it. But I'm don't happy install types for dependency so i ask and received answer like me :) funny |
Hi @LeCongNam , I am still a bit unclear on your scenario.
Yes, that is correct. We recommend you only use TypeScript (and in consequence:
This implies, that you are either (a) attempting to run TypeScript productively, or If your CICD includes a build step from TypeScript to JavaScript, then you do need the Best, |
Hi @Markus-Schroeder-de , we had the same issue when trying to import something from
Check the Known Issue section in SAP/ai-sdk-js#273. As this creates complication for users, could this problem be solved? I can imagine almost everyone who uses CAP with typescript will face this issue. |
Hi @ZhongpinWang , I believe you wanted to add this response to #251 Best, |
Considering this solved due to inactivity. Feel free to open another issue if the problem persist. |
Is there an existing issue for this?
Current Behavior
Expected Behavior
no error found npm run
npm run build
typescriptReferences
https://community.sap.com/t5/technology-q-a/sap-cap-typescript-error-could-not-find-a-declaration-file-for-module-sap/qaq-p/13764999
Versions
Anything else? Logs?
i'm using feature package of gitlab. when i run
npm i
i want all package install for all repository dependency.i'm used
"@cap-js/cds-types": "^0.6.5"
when upgrade cds version 6 to version 8 withnpm i -D @cap-js/cds-types
Current build CICD error when build. I'm used trig install
npm i @cap-js/cds-types
work well but not true because this package for dev mode not for production mode. Please help me. Thanks you so muchThe text was updated successfully, but these errors were encountered: