Discussions

Ask a Question
Back to All

errors using @avaya/axp-client-sdk-core

https://avayaexperienceplatform.github.io/omni-sdk-js/modules/_avaya_axp_client_sdk_core.html says to import as follows:

import { AxpClientSdk } from '@avaya/axp-client-sdk-core';

when i do that, i get:

Uncaught SyntaxError: Cannot use import statement outside a module

if i add type="module" to my script declaration, i get

Uncaught TypeError: Failed to resolve module specifier "@avaya/axp-client-sdk-core". Relative references must start with either "/", "./", or "../"

if i add "./" in front of "@avaya", i get:

GET http://127.0.0.1:8080/@avaya/axp-client-sdk-core net::ERR_ABORTED 404 (Not Found)

there's some trick to importing these sdks into my application but i can't work it out...