[Bug]: File path issues related to libopus.wasm on Windows
Product
USDK (Upstreet Agents SDK)
What happened?
Windows Bug!
USDK on the CLI is mapping drive letters incorrectly to the path of "libopus.wasm".
for e.g.: path: 'D:\C:\Users\<Your_Username_Goes_Here>\AppData\Roaming\npm\node_modules\usdk\packages\upstreet-agent\packages\codecs\packages\libopusjs\libopus.wasm'
Due to this, USDK CLI commands cannot be used/run.
Version
0.0.110
What is your environment?
Node Version: 23.2.0, NPM Version: 10.9.0, OS: Windows, Terminal: cmd
Link to original discussion
No response
Relevant log output
Error: ENOENT: no such file or directory open 'D:\C:\Users<Your_Username_Goes_Here>\AppData\Roaming\npm\node_modules\usdk\packages\upstreet-agent\packages\codecs\packages\libopusjs\libopus.wasm'
Looks like a fairly simple issue, seems like we're assuming the C drive.
It seems like an issue in import.meta.dirname. @AbdurrehmanSubhani @mavisakalyan - What do you think?
Looks like a fairly simple issue, seems like we're assuming the C drive.
Considering my current working directory is in my D drive, but as I installed usdk globally, it should be looking in my C drive. It seems to be taking the current working directory's drive letter and appending it to the location of usdk. (The location of usdk is correct, but in this scenario, the drive letter doesn't need to be appended i guess.)