Replies: 1 comment 4 replies
-
Can you try the latest webpack version? Also can you provide reproducible test repo? |
Beta Was this translation helpful? Give feedback.
4 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 use import { ABC } from "@ABC/abc" I encounter the following error during the ML operations

The 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