Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cds-parse-bug

Description

When importing from @sap/cds/common the compile() (also reflect()) functions throw an error:

  • CompilationError: CDS compilation failed (@sap/cds-compiler v5.3.0) db/schema.cds:2:10-14: Error: Artifact “cuid” has not been found (in using:“cuid”)

The code in this reproduction a copy/paste from the official docs... https://cap.cloud.sap/docs/node.js/cds-compile#single-in-memory-sources

Question:

What is needed for @sap/cds/common to be recognized when using the programmatic API?

Reproduce

  • npm install
  • node index.js

Recommended to reproduce on github codesspaces to ensure a clean env

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages