My Oracle Support Banner

Cannot Use IMPORT Statement To Call A JavaScript File Enclosed In Another JavaScript File (Doc ID 2952635.1)

Last updated on MAY 31, 2023

Applies to:

Siebel CRM - Version 22.3 and later
Information in this document applies to any platform.


The requirement is to integrate one of the plug-ins called "shoelace" jQuery libraries in the environment, but the import errors out.

Siebel cannot use import statement in Javascript files, the error can be observed in the browser console log or on the interface.

The issue can be reproduced at will with the following steps:
1. Download the plug-in from jQuery library.

2. Call the JavaScript file in PM and PR.
    The "shoelace.js" is defined in PR.

3. The following error in the console is observed when the view is loaded: "Uncaught SyntaxError: Cannot use import statement outside a module".


 Add a new jQuery plug-in into Siebel.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.