vercel / modelfusion

The TypeScript library for building AI applications.
https://modelfusion.dev
MIT License
1.06k stars 76 forks source link

No longer can use on browser only v0.63.0 #168

Closed Necmttn closed 8 months ago

Necmttn commented 8 months ago

Is there a way to opt-out from runs when importing?

Module build failed: UnhandledSchemeError: Reading from "node:async_hooks" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
Import trace for requested module:
node:async_hooks
../../node_modules/.pnpm/modelfusion@0.63.0/node_modules/modelfusion/core/getRun.js
../../node_modules/.pnpm/modelfusion@0.63.0/node_modules/modelfusion/core/index.js
../../node_modules/.pnpm/modelfusion@0.63.0/node_modules/modelfusion/index.js
../core/src/nodes/openai/openai-function.ts
Necmttn commented 8 months ago

Oh looks like known issue; https://modelfusion.dev/guide/troubleshooting/bundling#error-nodeasync_hooks-is-not-available-in-the-browser

Necmttn commented 8 months ago

updated the docs at #169