Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

coreStep in Internal error during "Functions bundling" #1027

Open
ehmicky opened this issue Feb 17, 2022 · 2 comments
Open

coreStep in Internal error during "Functions bundling" #1027

ehmicky opened this issue Feb 17, 2022 · 2 comments
Labels
bugsnag buildbot @netlify/build 26.3.3 type: bug code to address defects in shipped code

Comments

@ehmicky
Copy link
Contributor

ehmicky commented Feb 17, 2022

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

@eduardoboucas eduardoboucas transferred this issue from netlify/build Feb 17, 2022
@eduardoboucas eduardoboucas added the type: bug code to address defects in shipped code label Feb 17, 2022
@eduardoboucas
Copy link
Member

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).

@minivan
Copy link

minivan commented Jun 14, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugsnag buildbot @netlify/build 26.3.3 type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

3 participants