SAP Knowledge Base Article - Preview

2747265 - Unable to build a project in SAP Web IDE using ES6: "Failed to compress <controller> This might be due to a syntax error in the file."

Symptom

When using ES6 code in SAP Web IDE for SAP Cloud Platform, the build fails with this error message in the console:

Failed to compress dist/tmp/controller/App.controller.js. This might be due to a syntax error in the file.


This might be due to a syntax error in the file.""> Read more...

Environment

  • SAP Cloud Platform
  • SAP Web IDE

Product

SAP Business Technology Platform all versions ; SAP Cloud Platform Web IDE 2.0

Keywords

dist/tmp/controller, unexpected token, Use --force to continue, grunt-sapui5-bestpractice-build , KBA , CA-WDE-BLD-GRUNT , SAP Web IDE Grunt build , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.