Menu

ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration.

ECMAScript 2015 was the second major revision to JavaScript. ECMAScript 2015 is also known as ES6 and ECMAScript 6.

Issue:

ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration.
 

Workaround:

The let keyword is not supported to declare a variable. Instead of let try using the var.

Service-Component entry can not be located in JAR: OSGI-INF

We might come to this issue while building the AEM code. The issue is with the @compoennt properties or the definition given for the file. In most of the cases error "Service-Component entry can not be located in JAR: OSGI-INF" says, that the @component name property which we are trying to give here is a duplicate and that name has been already given to a class, hence this name can not be accepted for a new component because it causes the unnecessary conflict between two components, and difficult to generate the meta-type or metadata, and manage the OSGi component.


[ERROR] Bundle com.rashid.aem.bundles:servlets:bundle:1.0.0-SNAPSHOT : Service-Component entry can not be located in JAR: OSGI-INF/com.rashid.aem.servlets.MobileAppImageServlet.xml~

[ERROR] Error(s) found in bundle configuration


Resolution

Update the name property value under @component annotation.


Example:

@Component( immediate = true,
service = Servlet.
class,
name =
"com.rashid.aem.servlets.GetAllImageServlet",
property = {
"sling.servlet.selectors=mobileapp",
"sling.servlet.extensions=json",
"sling.servlet.methods=GET",
"sling.servlet.paths=/bin/getAllImages"})

How to update git password in local windows machine?

We can update git password or any other login credential in windows credential manager.

To open the windows credential manager

1. Open control panel

2. Switch to small view and look for credential manager

How to update password in windows machine for any logged-in account

3. Go to Windows credentials tab

Windows Credentials manager to update the credential of logged in accounts

4. In Generic credentials section look for your account and click on that. When you click it will get expanded and you will see option Edit or Remove

5. Click on Edit and update the credential and save it.

6. Now perform your action.

Note: We can not store more than one Git credential in windows credential