Javascript undefined error for JS Use APIs | Community
Skip to main content
September 16, 2019
Solved

Javascript undefined error for JS Use APIs

  • September 16, 2019
  • 3 replies
  • 3622 views

Hi all,

I'm using AEM version 6.3.0.2 and created a component using sightly and JS use API. I keep getting this error. Its the same with other components as well.

org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException

  • org.apache.sling.scripting.sightly.SightlyException: No JavaScript engine was defined.

at org.apache.sling.scripting.sightly.js.impl.JsUseProvider.provide(JsUseProvider.java:90)

at org.apache.sling.scripting.sightly.impl.engine.extension.use.UseRuntimeExtension.call(UseRuntimeExtension.java:72)

at org.apache.sling.scripting.sightly.impl.engine.runtime.RenderContextImpl.call(RenderContextImpl.java:75)

  at

What could be the reason and how do we fix it? Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Bharath_valse

Please check if bundle "Apache Sling Scripting JavaScript Support" is in active state

3 replies

Adobe Employee
September 16, 2019

I've seen this before when the runmode is incorrect, you can check further on this by checking [1]

[1] /system/console/status-slingsettings

Bharath_valse
Bharath_valseAccepted solution
Level 4
September 17, 2019

Please check if bundle "Apache Sling Scripting JavaScript Support" is in active state

jaibAuthor
September 18, 2019

Thanks. It was in resolved state. Once made active, it worked.