SAP-samples / fiori-elements-feature-showcase

Sample application that demonstrates and documents a broad variety of features of SAP Fiori elements for OData V4. Developers can play around with the new features and learn how to implement them.
https://community.sap.com/topics/fiori-elements
Apache License 2.0
211 stars 74 forks source link

Missing dependency @sap/cds-foss #3

Closed gb1 closed 1 year ago

gb1 commented 2 years ago

Hi,

I have installed CAP via npm i -g @sap/cds-dk and the cds command is working. I have then run npm install in the root directory.

When I run cds watch I get this error about a missing node dependency (I have tried npm install @sap/cds-foss also but get the same)

''' c:\gb\fiori_elements\fiori-elements-feature-showcase>cds watch

cds serve all --with-mocks --in-memory? watching: cds,csn,csv,ts,mjs,cjs,js,json,properties,edmx,xml,env,css,gif,html,jpg,png,svg... live reload enabled for browsers


[cds] - model loaded from 18 file(s):

.\db\common.cds .\db\schema.cds .\srv\service.cds .\app\services.cds .\node_modules\@sap\cds\common.cds .\app\featureShowcase\capabilities.cds .\app\featureShowcase\field-control.cds .\app\featureShowcase\labels.cds .\app\featureShowcase\layouts_RootEntities.cds .\app\featureShowcase\layouts_contacts.cds .\app\featureShowcase\layouts_RootEntityVariants.cds .\app\featureShowcase\layouts_GrandChildEntities.cds .\app\featureShowcase\layouts_ChildEntities3.cds .\app\featureShowcase\layouts_ChildEntities1.cds .\app\featureShowcase\layouts_ChildEntities2.cds .\app\featureShowcase\layouts_ChartDataEntities.cds .\app\featureShowcase\value-helps.cds .\app\featureShowcaseNavigationTarget\annotations.cds

[ERROR] Cannot find module '@sap/cds-foss' Require stack:

schiwekM commented 2 years ago

Hi @gb1,

please excuse the late reply. Did you also just run 'npm i' to get the '@sap/cds' dependency? '@sap/cds-dk' is just the development toolkit for CAP.

Best regards, Marten