cancel
Showing results for 
Search instead for 
Did you mean: 

@sap/cds-dk: 4.1.5 returns "TypeError: Cannot read property 'match' of undefined" for "cds deploy"

gregorw
SAP Mentor
SAP Mentor
1,677

Hello CAP Team,

I'm using:

@sap/cds: 5.1.5
@sap/cds-compiler: 2.2.8
@sap/cds-dk: 4.1.5
@sap/cds-foss: 2.3.1
@sap/cds-runtime: 3.1.1
Node.js: v14.16.1
home: /Users/gwolf/.nvm/versions/node/v14.16.1/lib/node_modules/@sap/cds-dk/node_modules/@sap/cds
test-deploy: 1.0.0

and executed the following commands:

cds init test-deploy --add samples
cd test-deploy
cds deploy --to sqlite

When I now execute:

cds deploy

I get the error:

[INTERNAL ERROR] TypeError: Cannot read property 'match' of undefined
    at Object.deploy_to_sqlite [as deploy] (/Users/gwolf/.nvm/versions/node/v14.16.1/lib/node_modules/@sap/cds-dk/bin/deploy/to-sqlite.js:7:27)
    at Object.deploy (/Users/gwolf/.nvm/versions/node/v14.16.1/lib/node_modules/@sap/cds-dk/bin/deploy/index.js:83:20)
    at Object.exec (/Users/gwolf/.nvm/versions/node/v14.16.1/lib/node_modules/@sap/cds-dk/bin/cds.js:38:19)
    at Module.exports (/Users/gwolf/.nvm/versions/node/v14.16.1/lib/node_modules/@sap/cds-dk/bin/cds.js:85:49)
    at Object.<anonymous> (/Users/gwolf/.nvm/versions/node/v14.16.1/lib/node_modules/@sap/cds-dk/bin/cds.js:90:29)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)

Is that perhaps already fixed in the next release or should I also file an incident?

Best regards
Gregor

Accepted Solutions (1)

Accepted Solutions (1)

chgeo
Product and Topic Expert
Product and Topic Expert

This will be fixed with the next CAP release expected this week.

Answers (0)