Closed whydrae closed 8 months ago
Hi and thanks for reaching out. This is a known and documented limitation in UI5 Tooling.
You can work around this issue by adding spaces in the template literal like this: ${ version }
, or by using a different variable name.
We currently do not plan to detect such cases. Please let us know if you see that this has a major negative impact in your project. The added complexity and potential performance penalty currently does not seem to be worth the development efforts for us.
Expected Behavior
When using template literals,
${version}
should not be replaced in the productive code (expect inmanifest.json
?) with the version from thepackage.json
.Current Behavior
When I use the
ui5 serve
and${version}
in the template literals, it's getting replaced.Steps to Reproduce the Issue
easy-ui5
to generate a simple ui5 app (not a typescript one)Main.contoller.js
, in functionsayHello
add the following code:Context
ui5 --version
when using the CLI):3.9.2
18.19.0
10.4.0
macOS
Edge
Log Output / Stack Trace