Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Javascript undefined error for JS Use APIs

sjb1990
Level 1
Level 1

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.

1 Accepted Solution
Bharath_valse
Correct answer by
Level 4
Level 4

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

View solution in original post

0 Replies
yanirac19051392
Employee
Employee

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
Correct answer by
Level 4
Level 4

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

View solution in original post

sjb1990
Level 1
Level 1

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