Error: [alloy] The library has already been configured and may only be configured once.
Hi -
I'm integrating AEP Analytics into my SPA via NPM. I'm able to make successful "sendEvent" calls that return a 200. However, when I run my test runner, Karma, via "npm test" I am getting this error:
Error: [alloy] The library has already been configured and may only be configured once.
Normally, that would point to these issues:
Check code to ensure that I am not accidentally loading the same library more than once
Ensure that I call alloy("configure") only once
But I've seen this issue as well that throws the same error but it's for a data set id issue -- which is unrelated to the error message.
Can anyone shed some light, please? Thanks for any input.
NOTE: This does not happen when I access the alloy.js files from the CDN.