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.

Unable to deploy via netlify

See original GitHub issue

Hey, I pulled the latest repo and when I tried to test deploy it via netlify I get this error message Message from deploy log of netlify

6:24:51 PM: Build ready to start
6:24:53 PM: build-image version: 8925038cf853b22d6397cdcb9904ac88b66bb383 (focal)
6:24:53 PM: build-image tag: v4.5.0
6:24:53 PM: buildbot version: c0e8ffa453e19757f422ac0b6b14bc1b57e53b59
6:24:53 PM: Fetching cached dependencies
6:24:53 PM: Starting to download cache of 211.6MB
6:24:54 PM: Finished downloading cache in 1.254844074s
6:24:54 PM: Starting to extract cache
6:25:07 PM: Finished extracting cache in 12.531234217s
6:25:07 PM: Finished fetching cache in 13.840983084s
6:25:07 PM: Starting to prepare the repo for build
6:25:07 PM: Preparing Git Reference pull/3/head
6:25:12 PM: Parsing package.json dependencies
6:25:13 PM: Starting build script
6:25:13 PM: Installing dependencies
6:25:13 PM: Python version set to 2.7
6:25:13 PM: Started restoring cached node version
6:25:15 PM: Finished restoring cached node version
6:25:16 PM: v16.13.0 is already installed.
6:25:17 PM: Now using node v16.13.0 (npm v8.1.0)
6:25:17 PM: Started restoring cached build plugins
6:25:17 PM: Finished restoring cached build plugins
6:25:17 PM: Attempting ruby version 2.7.2, read from environment
6:25:18 PM: Using ruby version 2.7.2
6:25:19 PM: Using PHP version 8.0
6:25:19 PM: Started restoring cached node modules
6:25:19 PM: Finished restoring cached node modules
6:25:19 PM: Installing NPM modules using NPM version 8.1.0
6:25:38 PM: added 36 packages, removed 3 packages, and audited 2471 packages in 18s
6:25:38 PM: 196 packages are looking for funding
6:25:38 PM:   run `npm fund` for details
6:25:38 PM: 42 vulnerabilities (31 moderate, 9 high, 2 critical)
6:25:38 PM: To address all issues (including breaking changes), run:
6:25:38 PM:   npm audit fix --force
6:25:38 PM: Run `npm audit` for details.
6:25:38 PM: NPM modules installed
6:25:39 PM: Started restoring cached go cache
6:25:39 PM: Finished restoring cached go cache
6:25:39 PM: go version go1.16.5 linux/amd64
6:25:39 PM: go version go1.16.5 linux/amd64
6:25:39 PM: Installing missing commands
6:25:39 PM: Verify run directory
6:25:41 PM: ​
6:25:41 PM: ────────────────────────────────────────────────────────────────
6:25:41 PM:   Netlify Build                                                 
6:25:41 PM: ────────────────────────────────────────────────────────────────
6:25:41 PM: ​
6:25:41 PM: ❯ Version
6:25:41 PM:   @netlify/build 19.0.6
6:25:41 PM: ​
6:25:41 PM: ❯ Flags
6:25:41 PM:   baseRelDir: true
6:25:41 PM:   buildId: 61a3c97319fc690008ec4b7c
6:25:41 PM:   deployId: 61a3c97319fc690008ec4b7e
6:25:41 PM: ​
6:25:41 PM: ❯ Current directory
6:25:41 PM:   /opt/build/repo
6:25:41 PM: ​
6:25:41 PM: ❯ Config file
6:25:41 PM:   No config file was defined: using default values.
6:25:41 PM: ​
6:25:41 PM: ❯ Context
6:25:41 PM:   deploy-preview
6:25:41 PM: ​
6:25:41 PM: ────────────────────────────────────────────────────────────────
6:25:41 PM:   1. Build command from Netlify app                             
6:25:41 PM: ────────────────────────────────────────────────────────────────
6:25:41 PM: ​
6:25:41 PM: $ yarn build
6:25:42 PM: yarn run v1.22.17
6:25:42 PM: warning package.json: No license field
6:25:42 PM: $ react-scripts build
6:25:47 PM: Creating an optimized production build...
6:27:45 PM: 
6:27:45 PM: Treating warnings as errors because process.env.CI = true.
6:27:45 PM: Most CI servers set it automatically.
6:27:45 PM: 
6:27:45 PM: Failed to compile.
6:27:45 PM: 
6:27:45 PM: src/hooks/useInchDex.js
6:27:45 PM:   Line 11:6:  React Hook useEffect has a missing dependency: 'Moralis'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
6:27:45 PM: error Command failed with exit code 1.
6:27:45 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
6:27:45 PM: ​
6:27:45 PM: ────────────────────────────────────────────────────────────────
6:27:45 PM:   "build.command" failed                                        
6:27:45 PM: ────────────────────────────────────────────────────────────────
6:27:45 PM: ​
6:27:45 PM:   Error message
6:27:45 PM:   Command failed with exit code 1: yarn build
6:27:45 PM: ​
6:27:45 PM:   Error location
6:27:45 PM:   In Build command from Netlify app:
6:27:45 PM:   yarn build
6:27:45 PM: ​
6:27:45 PM:   Resolved config
6:27:45 PM:   build:
6:27:45 PM:     command: yarn build
6:27:45 PM:     commandOrigin: ui
6:27:45 PM:     environment:
6:27:45 PM:       - REVIEW_ID
6:27:45 PM:     publish: /opt/build/repo/build
6:27:45 PM:     publishOrigin: ui
6:27:45 PM: Caching artifacts
6:27:45 PM: Started saving node modules
6:27:45 PM: Finished saving node modules
6:27:45 PM: Started saving build plugins
6:27:45 PM: Finished saving build plugins
6:27:45 PM: Started saving pip cache
6:27:45 PM: Finished saving pip cache
6:27:45 PM: Started saving emacs cask dependencies
6:27:45 PM: Finished saving emacs cask dependencies
6:27:45 PM: Started saving maven dependencies
6:27:45 PM: Finished saving maven dependencies
6:27:45 PM: Started saving boot dependencies
6:27:45 PM: Finished saving boot dependencies
6:27:45 PM: Started saving rust rustup cache
6:27:45 PM: Finished saving rust rustup cache
6:27:45 PM: Started saving go dependencies
6:27:45 PM: Finished saving go dependencies
6:27:45 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:27:45 PM: Creating deploy upload records
6:27:45 PM: Failing build: Failed to build site
6:27:45 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
6:27:46 PM: Finished processing build request in 2m52.411383294s

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
Y0moocommented, Nov 29, 2021

Hi @CryptoLover705

You can fix: Line 11:6: React Hook useEffect has a missing dependency: 'Moralis'. Either include it or remove the dependency array react-hooks/exhaustive-deps

or enable ignoring warnings in your netlify https://stackoverflow.com/questions/62415804/how-to-prevent-netlify-from-treating-warnings-as-errors-because-process-env-ci

0reactions
CryptoLover705commented, Dec 14, 2021

Since last update the blank page error has now been fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Support Guide] Frequently encountered problems during builds
In case your build fails on Netlify, first make sure it builds locally in your own development environment. This is a prerequisite to...
Read more >
Deploy failed Netlify - Stack Overflow
Go to: Site settings > Build & deploy > Build image selection > Edit settings. Β· Choose Ubuntu Xenial 16.05. Β· Save and...
Read more >
2 ways to overcome deployment problems with React on Netlify
Solution 2: Make changes in your deployment setting on Netlify directly: In Netlify open "Site details" - Build & deploy - Environment -Β ......
Read more >
Unable to deploy to either Netlify or AWS(serverless)
I have run through the steps in sending emails tutorial and the application works correctly on my local windows desktop.
Read more >
4 Ways To Deploy Your Static Site with Netlify
Just navigate to the Sites tab of your dashboard and drag a folder of files on to it, and away you go. Netlify...
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