Symptom
When deploying a CAP NodeJS project to BTP, you are getting the following error:
SyntaxError: Unexpected token '??='
You might also see:
ERROR the "before-all"" build failed: could not execute the "npx -p @sap/cds-dk cds build --production" command: exit status 1
Error: could not build the MTA project ... command: exit status 2
Read more...
Environment
SAP Cloud Application Programming Model
Product
Keywords
cap, nodejs, node.js, syntaxerror: unexpected token, '??=', before-all, build failed, could not execute, exit status 1, could not build the mta project, exit status 2 , KBA , BC-XS-CDX-NJS , SAP CAP – node.js runtime , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.