Using the ServiceNow IDE I cannot get Now.include to work.

JamesF587583623
Tera Contributor

JamesF587583623_0-1748957568320.png



As you can see its getting the red squiggle and the error is: 

 

"Property 'include' does not exist on type 'typeof Now'."

 

I got Now.include from the docs: https://www.servicenow.com/docs/bundle/yokohama-application-development/page/build/servicenow-sdk/re...

 

 

I've tried to find if there is an import I'm missing somewhere but cannot find it even searching through the types. 

 

I am on a PDI.

5 REPLIES 5

JamesF587583623
Tera Contributor

No love on this? 

I was using the latest version of the SDK  3.0.2 which should have included the newly added Now.include function.

Hi James,

Do you know if either of these sys_properties are configured on your instance:

glide.servlet.static_content_types
glide.ui.strict_content_types
 
If they're missing json, wasm, ts it could cause certain parts of the IDE to not load correctly. Since it appears the syntax highlighting is not working either; which is loaded using WASM.

Okay seems something was up with that workspace. I created a new one and i got it to work.

The old one still doesn't work even though it has the same dependencies.

Glad the new workspace is working normally.

Can you open the `settings.json` for the broken workspace and share it? (assuming there's no secrets in it of course). You can also access it from the Gear Icon -> Settings and you can access the JSON file by clicking this thing in the top right.

Screenshot 2025-06-17 at 4.29.45 PM.png

 

That's very weird that one workspace would work fine and another wouldn't. Is it possible some feature was turned off in the workspace settings?