cancel
Showing results for 
Search instead for 
Did you mean: 

CAP Typescript - @cap-js/typer namespace missing

geert-janklaps
Active Contributor
0 Kudos

Hi,

I'm currently working on switching a project to the new typescript approach using @cap-js/typer. Unfortunately, when using the newly generated types it looks like the namespace is missing when performing CQL queries.

I'm using the same approach as described here in the documentation.

Code sample:

When the query get executed, it fails to due to the namespace not being present in the SQL query:

I'm using following package versions:

@cap-js/cds-typer: 0.5.0
@cap-js/sqlite: 1.0.1
@sap/cds: 7.1.0
@sap/cds-compiler: 4.0.2
@sap/cds-dk: 7.0.3
@sap/cds-dk (global): 7.0.3
@sap/cds-fiori: 1.0.0
@sap/cds-foss: 4.0.2
@sap/cds-mtxs: 1.9.2
@sap/eslint-plugin-cds: 2.6.3
@thevaluechain/cap-number-range: 1.1.5
Node.js: v16.19.0
home: /home/user/projects/icm-reuse-numberrange/node_modules/@sap/cds

Am I missing something here? Any pointers on how to get this resolved?

Geert-Jan

Marian_Zeis
Active Contributor

Hi Geert-Jan,

do you think that it´s maybe better to open a issue on the GitHub Repo?

https://github.com/cap-js/cds-typer

geert-janklaps
Active Contributor

Hi 20eed143c19f4b82bc4cf049916102cb,

I'm going to that right away, completely looked over the fact that there's a public repo available 🙂

Cheers,

Geert-Jan

Marian_Zeis
Active Contributor

Accepted Solutions (0)

Answers (0)