Open hal-shu-sato opened 7 months ago
It likely has related to this. next dev
works correctly, but next build
does not.
[next build failed to import web workers from pure esm packages · Issue #33914 · vercel/next.js](https://github.com/vercel/next.js/issues/33914)
The latest version of next.js seems to treat this as an error.
By updating
libarchive.js
to v2, the build fails. Since v2.0.0, libarchive.js uses TypeScript, I think we don't have to use@types/libarchive.js
. But when I remove it and fix some points, the build even fails.