Deploy works, snapshot error when calling package langchain.js

Hello, I added langchain package as a dependency to my forge app and deploy passed fine.
But when simply calling the library in the code, the deploy fails with error ‘Snapshot error occurred: Error: Automatic publicPath is not supported in this browser.’

after setting snapshots to false in manifest, the deploy works, but when the function is called, the same error shows in browser console.
Thank you for any tips.


its this package.