SAP-archive / sap-devtoberfest-2020

The home of Devtoberfest 2020 - an open celebration of what makes us developers – coding and collaboration!
Apache License 2.0
180 stars 86 forks source link

[ERROR] No .cds models found, please specify one as an argument #100

Open ahmedkhan29789 opened 2 years ago

ahmedkhan29789 commented 2 years ago

Hello Experts, I am trying to create a SAP CAPM project and trying to deploy the cds artifact.

I am getting this error "[ERROR] No .cds models found, please specify one as an argument" when trying to run cds deploy --to sqlite, I also tried unset NODE_PATH still it didn't work.

I also tried giving full path of cds file still same error cds deploy --to sqlite:db/src/tables/promotions.cds

Kindly provide any suggestion

user: sap-ibp-promotions $ cds deploy --to sqlite [ERROR] No .cds models found, please specify one as an argument

user: sap-ibp-promotions $ unset node_path user: sap-ibp-promotions $ cds deploy --to sqlite:db/src/tables/promotions.cds [ERROR] No .cds models found, please specify one as an argument

user: sap-ibp-promotions $ cds deploy --to sqlite:db
[ERROR] No .cds models found, please specify one as an argument

shivamkrsingh commented 8 months ago

image

in my case i was getting this error when i was not in direct directory where my db folder is available . once you are in directory where db folder is available this issue wont come @qmacro thanks for your contributions

sabarna17 commented 8 months ago

I also get the same error.

image