cancel
Showing results for 
Search instead for 
Did you mean: 

TypeError: Cannot read properties of undefined (reading 'keywords')

kaizen9
Discoverer
0 Kudos

I am completely beginner to SAP world and about to complete the training, "Building side-by-side extensions on SAP BTP", I stumbled upon such error message and cannot start the CDS application using, cds watch command. It worked in the past but suddenly this happened. npm update and npm ci did NOT work. Can it happen due to any recent updates in package.json dependencies.? Can anyone support with this please? Many thanks.

kaizen9_0-1716303511268.png

patricebender
Product and Topic Expert
Product and Topic Expert
0 Kudos
please attach the output of `cds --version`
kaizen9
Discoverer
0 Kudos

@patricebender Thanks for feedback. Here is output for cds --version

kaizen9_0-1716384906951.png

 

Accepted Solutions (1)

Accepted Solutions (1)

patricebender
Product and Topic Expert
Product and Topic Expert
0 Kudos

You are using cds@7.6.2, I was able to reproduce the issue with this version.

→ Please run `npm install` again, the error has been fixed with `@sap/cds@7.9^`.

 

kaizen9
Discoverer
0 Kudos

Even after running the npm install, the error was still there but then I had to manually update package.json and package-lock.json with "@sap/cds": "7.9.2" and then cds watch started and everntually application.

But it worked, thanks @patricebender. Now I'm ready to take over next challenge already ; ) 

kaizen9_0-1716390610682.png

 

Answers (1)

Answers (1)

kaizen9
Discoverer
0 Kudos

Test