I am trying to migrate my existing kmp project which builds library for iOS and Android to include JS as well. The libs for Android and iOS used websocket with authorisation header which wasn't working on JS. So now I am using an npm package which can help me do that. Now I am seeing an issue trying to use that npm package. When the code hits the point which uses the npm, I get -
ReferenceError: <class from npm package> is not defined
I have used dukat to generate the external dependencies and tweaked to fix the build errors (lib.dom.kt). I can also see the npm package in the build folder. I would really appreciate any help I can get.