Closed cryptodeal closed 2 years ago
I suspect napi-rs is attempting to read that file which is why nft attempts to trace it.
Without the repo with the input file and nft options, I can't know for sure.
However, this isn't really a bug in nft. The warnings in the result from nft can be handled as you wish, and it seems svelte decided to throw.
As of @sveltejs/adapter-vercel version 1.0.0-next.63, the build process employs the exported nodeFileTrace function from @vercel/nft to determine which modules throw errors, allowing the errors logged by the CLI to be displayed in a much cleaner manner.
Unfortunately, this causes the build to error out:
Per @Rich-Harris, this appears to possibly be an issue within the exported nodeFileTrace function in @vercel/nft as it appears to be attempting to parse
usr/bin/ldd
: https://github.com/sveltejs/kit/issues/5577#issuecomment-1186693286Link to the full initial issue w/ additional logs: https://github.com/sveltejs/kit/issues/5577
Link to reproduction of issue: https://github.com/cryptodeal/adapter-vercel-build-error