question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Netlify Build Failing

See original GitHub issue

Environment

  • Operating System: Darwin
  • Node Version: v14.18.1
  • Nuxt Version: 0.0.0
  • Package Manager: yarn@1.22.10
  • Bundler: Webpack
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Describe the bug

Am I doing something wrong?

Netlify Deploy is failing

1:48:13 PM:   2. Functions bundling                                         
1:48:13 PM: ────────────────────────────────────────────────────────────────
1:48:13 PM: ​
1:48:13 PM: Packaging Functions from .netlify/functions-internal directory:
1:48:13 PM:  - server/server.ts
1:48:13 PM: ​
1:48:13 PM:  > .netlify/functions-internal/server/node_modules/node-fetch/src/index.js:9:17: error: Could not resolve "node:http" (mark it as external to exclude it from the bundle)
1:48:13 PM:     9 β”‚ import http from 'node:http';
1:48:13 PM:       β•΅                  ~~~~~~~~~~~
1:48:13 PM:  > .netlify/functions-internal/server/node_modules/node-fetch/src/index.js:10:18: error: Could not resolve "node:https" (mark it as external to exclude it from the bundle)
1:48:13 PM:     10 β”‚ import https from 'node:https';
1:48:13 PM:        β•΅                   ~~~~~~~~~~~~
1:48:13 PM:  > .netlify/functions-internal/server/node_modules/node-fetch/src/index.js:11:17: error: Could not resolve "node:zlib" (mark it as external to exclude it from the bundle)
1:48:13 PM:     11 β”‚ import zlib from 'node:zlib';
1:48:13 PM:        β•΅                  ~~~~~~~~~~~
1:48:13 PM:  > .netlify/functions-internal/server/node_modules/node-fetch/src/index.js:12:52: error: Could not resolve "node:stream" (mark it as external to exclude it from the bundle)
1:48:13 PM:     12 β”‚ import Stream, {PassThrough, pipeline as pump} from 'node:stream';
1:48:13 PM:        β•΅                                                     ~~~~~~~~~~~~~
1:48:13 PM:  > .netlify/functions-internal/server/node_modules/node-fetch/src/body.js:8:34: error: Could not resolve "node:stream" (mark it as external to exclude it from the bundle)
1:48:13 PM:     8 β”‚ import Stream, {PassThrough} from 'node:stream';
1:48:13 PM:       β•΅                                   ~~~~~~~~~~~~~
1:48:13 PM:  > .netlify/functions-internal/server/node_modules/node-fetch/src/body.js:9:31: error: Could not resolve "node:util" (mark it as external to exclude it from the bundle)
1:48:13 PM:     9 β”‚ import {types, deprecate} from 'node:util';
1:48:13 PM:       β•΅                                ~~~~~~~~~~~
1:48:13 PM:  > .netlify/functions-internal/server/node_modules/node-fetch/src/request.js:10:34: error: Could not resolve "node:url" (mark it as external to exclude it from the bundle)
1:48:13 PM:     10 β”‚ import {format as formatUrl} from 'node:url';
1:48:13 PM:        β•΅                                   ~~~~~~~~~~
1:48:13 PM:  > .netlify/functions-internal/server/node_modules/node-fetch/src/headers.js:7:20: error: Could not resolve "node:util" (mark it as external to exclude it from the bundle)
1:48:13 PM:     7 β”‚ import {types} from 'node:util';
1:48:13 PM:       β•΅                     ~~~~~~~~~~~
1:48:13 PM:  > .netlify/functions-internal/server/node_modules/node-fetch/src/headers.js:8:17: error: Could not resolve "node:http" (mark it as external to exclude it from the bundle)
1:48:13 PM:     8 β”‚ import http from 'node:http';
1:48:13 PM:       β•΅                  ~~~~~~~~~~~
1:48:13 PM:  > .netlify/functions-internal/server/node_modules/fetch-blob/from.js:1:59: error: Could not resolve "node:fs" (mark it as external to exclude it from the bundle)
1:48:13 PM:     1 β”‚ import { statSync, createReadStream, promises as fs } from 'node:fs'
1:48:13 PM:       β•΅                                                            ~~~~~~~~~
1:48:13 PM: 10 of 12 errors shown (disable the message limit with --log-limit=0)
1:48:13 PM: ​
1:48:13 PM: ────────────────────────────────────────────────────────────────
1:48:13 PM:   Dependencies installation error                               
1:48:13 PM: ────────────────────────────────────────────────────────────────
1:48:13 PM: ​

Reproduction

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:36 (20 by maintainers)

github_iconTop GitHub Comments

14reactions
netlify-team-account-1commented, Nov 12, 2021

I deployed https://github.com/netlify/zip-it-and-ship-it/pull/806 to production. The issue should not occur anymore. If it does, please let me know πŸ˜ƒ

4reactions
productdevbookcommented, Nov 12, 2021

I deployed netlify/zip-it-and-ship-it#806 to production. The issue should not occur anymore. If it does, please let me know πŸ˜ƒ

fixed thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build troubleshooting tips - Netlify Docs
# Build fails with exit status 128 ... Typically this means that we don't have permission to clone the repository you are trying...
Read more >
Deploy failed Netlify - Stack Overflow
A workaround is removing /build from your .gitignore and then removing the build command (yarn build or npm runΒ ...
Read more >
Deploy failed Netlify - Solved - YouTube
We couldn't deploy your site - Build failed.I was able to solve the problem by removing below:@angular/http@8.0.0-beta.10.
Read more >
Fixing Netlify Build Failures - Part 72 - YouTube
... the netlify build failures.Code: https://github.com/benawad/fullstack-graphql-airbnb-clone/tree/72_fix_netlify_deploysLinks from video:.
Read more >
Solved Command failed with exit code 1 when deploying react ...
I will show you guys how to quickly fix this common issue when adding a website to netlify Command failed with exit code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found