Description
JSDOM is one of the dependencies of adobe/acc-js-sdk package which I am using to make connection to Adobe Campaign in a cdk project. While deploying the application using 'cdk deploy' there is a build error for /xhr-sync-worker.js which occurs at the location node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js
Expected Behaviour
Application building successfully
Actual Behaviour
An error with JSDOM
ERROR Uncaught Exception {
"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module './xhr-sync-worker.js'\nRequire stack:\n- /var/task/index.js\n- /var/runtime/index.mjs",
"stack": [
"Runtime.ImportModuleError: Error: Cannot find module './xhr-sync-worker.js'",
"Require stack:",
"- /var/task/index.js",
"- /var/runtime/index.mjs",
" at _loadUserApp (file:///var/runtime/index.mjs:1000:17)",
" at async Object.UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1035:21)",
" at async start (file:///var/runtime/index.mjs:1200:23)",
" at async file:///var/runtime/index.mjs:1206:1"
]
}
Platform and Version
"aws-cdk-lib": "2.35.0"
"@adobe/acc-js-sdk": 1.1.17
Sample Code that illustrates the problem
const adobe = require("@adobe/acc-js-sdk");
Don't really know if the issue is with this package or the JSDOM package
Thanks in advance
Description
JSDOM is one of the dependencies of adobe/acc-js-sdk package which I am using to make connection to Adobe Campaign in a cdk project. While deploying the application using 'cdk deploy' there is a build error for /xhr-sync-worker.js which occurs at the location node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js
Expected Behaviour
Application building successfully
Actual Behaviour
An error with JSDOM
Platform and Version
"aws-cdk-lib": "2.35.0"
"@adobe/acc-js-sdk": 1.1.17
Sample Code that illustrates the problem
const adobe = require("@adobe/acc-js-sdk");
Don't really know if the issue is with this package or the JSDOM package
Thanks in advance