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.

image


its this package.

@TonyThaiDo Hi, I am working on langchain package as well and facing the same issue as you do. Did you happen to solve the error?

Thanks!

Hi, I did not get to resolve the issue. I believe it is because of the forge non native node runtime.