Skip to content

Add @cap-js/sqlite as dev dependency#52

Closed
rjayasinghe wants to merge 2 commits into
mainfrom
add-sqlite-devdep
Closed

Add @cap-js/sqlite as dev dependency#52
rjayasinghe wants to merge 2 commits into
mainfrom
add-sqlite-devdep

Conversation

@rjayasinghe

Copy link
Copy Markdown

Summary

  • Adds @cap-js/sqlite@^2 as a dev dependency to complement the cds-dk 10 upgrade.
  • Regenerates package-lock.json.

Why

cds export --data (invoked from apis/data-service/pom.xml) triggers cds.deploy('*') inside cds-dk, which requires a database implementation. cds-dk 9 bundled @cap-js/sqlite; cds-dk 10 no longer does. Without this dev dep, cds.export aborts with:

Error: Failed loading service implementation from @cap-js/sqlite
Cannot find module '/…/xflights-java/@cap-js/sqlite'

Note

This is one of several fixes needed for the CAP 5 upgrade. Additional bugs in cds-services (cds-maven-plugin) and cds-dk (hardcoded plugin version) block the root-level mvn compile when cds export -4 mvn is used. Those need to be resolved upstream before this branch can produce a green build end-to-end.

Test plan

  • npm install succeeds
  • mvn -pl apis/data-service -am package -DskipTests completes past cds.export (verified locally)

beckermarc and others added 2 commits July 3, 2026 13:17
`cds export --data` triggers `cds.deploy('*')`, which requires a
database implementation. cds-dk 9 bundled `@cap-js/sqlite`; cds-dk 10
no longer does, so the plugin fails to resolve it from the project
root and `cds.export` in `apis/data-service` aborts with
`Cannot find module '@cap-js/sqlite'`.

Declaring it as a dev dependency is the documented cds-dk 10
migration.
Base automatically changed from update-cap-5 to main July 6, 2026 15:10
@beckermarc

Copy link
Copy Markdown
Contributor

Replaced by #55

@beckermarc beckermarc closed this Jul 9, 2026
@beckermarc beckermarc deleted the add-sqlite-devdep branch July 9, 2026 08:45
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 this pull request may close these issues.

2 participants