Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for CDS 7.x.x #58

Open
thakrawielitzki opened this issue Jul 5, 2023 · 1 comment
Open

Support for CDS 7.x.x #58

thakrawielitzki opened this issue Jul 5, 2023 · 1 comment

Comments

@thakrawielitzki
Copy link

Hello,

cds2types is not compatible with the newly released @sap/cds with Version 7.x.x.
When adding a dependency to cds2types npm returns this error:

npm install cds2types --save-dev

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: asd@1.0.0
npm ERR! Found: @sap/cds@7.0.1
npm ERR! node_modules/@sap/cds
npm ERR! @sap/cds@"^7" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @sap/cds@"^6.3.1" from cds2types@3.0.0
npm ERR! node_modules/cds2types
npm ERR! dev cds2types@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Steps to reproduce

  1. cds init
  2. npm install cds2types --save-dev

I guess the dependencies in the package.json need to be updated.

Best Regards

@ghost ghost mentioned this issue Jul 17, 2023
@thakrawielitzki
Copy link
Author

thakrawielitzki commented Aug 28, 2023

For anyone still using this module. SAP has released their own TS types generator (cds-typer) and it is officially referenced on the CAPire site.

CAPire - Generating Model Types Automatically
CAPire - CDS Typer documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant