Closed BastiInnovation closed 1 month ago
call in the root "npm rebuild" and check if you have the sym link in the npm-registry with the cds__ (double underscore) see https://github.com/cap-js/cds-types/issues/251
Hi @BastiInnovation ,
I will look into the missing .minify
, but compile.for.nodejs
appears to not/ no longer be supported:
> cds c --help
...
-4 | --for <target>
Unfolds the compiled CSN for the specified <target> usages,
or get a comma-separated list, without generating target formats.
Currently supported:
- odata
- sql
Best, Daniel
Hi @daogrady,
thank u for u quick reply. Yesterday I got the information from SAP support that i have to use compile.for.nodejs
if I want to keep my own initialization logic...
Best regards, Bastian
Hi @daogrady ,
Just to confirm: Stakeholders with an own initialization logic need to set cds.model
, which requires compile.for.nodejs
. It's also documented on capire.
Hi @David-Kunz ,
thanks for confirming! I have prepared a fix, but I am still unclear on some details. Let's maybe take this opportunity to clear this and a few other questions up in a sync these days.
Best, Daniel
Is there an existing issue for this?
Current Behavior
My Backend is running with nestjs. You can find my Project here: https://github.com/BastiInnovation/cap-template.
While compiling the project i received two errors:
Currently the typedefinitions for .minify and .nodejs are missing in cds-types
Expected Behavior
No response
References
Here the references to CAPier articles: cds.minify
cds.compile.for.nodejs as not yet been documented.
Versions
Anything else? Logs?
No response