SAP / ui5-migration

ARCHIVED - A tool to support the migration of UI5 projects by adapting code for new UI5 framework versions.
Apache License 2.0
37 stars 9 forks source link

Chain operator causing issue while running migration tool #316

Closed DashrathSinghSAP closed 6 days ago

DashrathSinghSAP commented 1 week ago

When we have chain operator in the code, we can't use that file for migration. It starts throwing error until we remove chain operator to old way of working. Eg: oResponse && oResponse.prop1 will work but oResponse?.prop1 doesn't.

flovogt commented 6 days ago

Hi @DashrathSinghSAP, the current version of ui5-migration does not support newer ECMAScript language features than ES2017 and it is also not planned to implement any new functionality.

The future linting tool for UI5 projects is ui5-linter. Currently, this tool does not offer an actual migration but report findings, so you can easily fix it on your own.