zip-it-and-ship-it icon indicating copy to clipboard operation
zip-it-and-ship-it copied to clipboard

coreStep in Internal error during "Functions bundling"

Open ehmicky opened this issue 2 years ago • 2 comments

Error in Netlify Build

coreStep in Internal error during "Functions bundling" Unexpected token } in JSON at position 251

View on Bugsnag

Stacktrace

/opt/buildhome/node-deps/node_modules/@netlify/zip-it-and-ship-it/dist/runtimes/node/bundlers/nft/es_modules.js:24 - patchESMPackage

View full stacktrace

Created by Eduardo Boucas via Bugsnag

ehmicky avatar Feb 17 '22 16:02 ehmicky

We use esbuild to transpile ESM functions when using NFT. Unfortunately, esbuild seems to error when it encounters a malformed package.json, leading to this problem.

We should upgrade our esbuild fork and see if the problem persists after that (cc @Skn0tt).

eduardoboucas avatar Feb 17 '22 16:02 eduardoboucas

we have updated our esbuild fork, is this something that still persists?

minivan avatar Jun 14 '22 10:06 minivan