Replies: 1 comment 2 replies
-
wasm modules used by wasm backend cannot be packed like that, they need to be shipped and loded using http. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've created a JavaScript SDK (ABC) that uses the human library and tensorflow/tfjs for ML operations. I bundle the SDK using Webpack v5.94.
Everything works fine when I use the source code directly in my Next.js app using

import { ABC } from "../../abc.js"
. However, when I install the SDK from npm (i.e., the bundled output), and then useimport { ABC } from "@ABC/abc"
I encounter the following error during the ML operationsThe output type in the webpack config file is "module" and my package type is also "module" for both the SDK and my NextJS app.
Any ideas on what might be wrong with this setup?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions