sqlitesap-cap

Facing SQlite3 module not found - SAP CAP sample


I am getting error when running CDS WATCH from SAP trail business app studio for one of the samples.

I tried npm i sqlite3 -d and different options, but none gave me a luck ...

Below is console stack error log.

any helps are appreciated

Thanks Rajesh

Console stack error log:


Solution

  • Add the following dependencies in package.json:

    "sqlite3": "^4.2.0"

    And run npm install in terminal.

    This should install sqlite3. This can be verified in package-lock.json. sqlite3 would be updated there.