https://sleepy-rosalind-fabd9f.netlify.app/
Hi, when I try to build a gatsby app on netlify, I’m having this error that is generated by a 3rd party module called react-water-wave. This is the log:
10:09:45 AM: Build ready to start
10:09:56 AM: build-image version: 122b31996ccaffd45d820a452d6227f8312110cc (focal)
10:09:56 AM: build-image tag: v4.5.3
10:09:56 AM: buildbot version: 7eafb394e33f42f945c880ce4ac17c149867813a
10:09:57 AM: Fetching cached dependencies
10:09:57 AM: Starting to download cache of 271.1MB
10:10:00 AM: Finished downloading cache in 3.23328144s
10:10:00 AM: Starting to extract cache
10:10:08 AM: Finished extracting cache in 8.578207571s
10:10:08 AM: Finished fetching cache in 11.847145216s
10:10:08 AM: Starting to prepare the repo for build
10:10:09 AM: Preparing Git Reference refs/heads/main
10:10:09 AM: Parsing package.json dependencies
10:10:11 AM: Starting build script
10:10:11 AM: Installing dependencies
10:10:11 AM: Python version set to 2.7
10:10:11 AM: Started restoring cached node version
10:10:12 AM: Finished restoring cached node version
10:10:13 AM: v16.14.0 is already installed.
10:10:13 AM: Now using node v16.14.0 (npm v8.3.1)
10:10:13 AM: Started restoring cached build plugins
10:10:13 AM: Finished restoring cached build plugins
10:10:13 AM: Attempting ruby version 2.7.2, read from environment
10:10:14 AM: Using ruby version 2.7.2
10:10:15 AM: Using PHP version 8.0
10:10:15 AM: Started restoring cached node modules
10:10:15 AM: Finished restoring cached node modules
10:10:15 AM: Installing NPM modules using NPM version 8.3.1
10:10:17 AM: npm WARN old lockfile
10:10:17 AM: npm WARN old lockfile The package-lock.json file was created with an old version of npm,
10:10:17 AM: npm WARN old lockfile so supplemental metadata must be fetched from the registry.
10:10:17 AM: npm WARN old lockfile
10:10:17 AM: npm WARN old lockfile This is a one-time fix-up, please be patient...
10:10:17 AM: npm WARN old lockfile
10:10:45 AM: added 9 packages, and audited 1811 packages in 29s
10:10:45 AM: 226 packages are looking for funding
10:10:45 AM: run `npm fund` for details
10:10:45 AM: 35 vulnerabilities (9 moderate, 26 high)
10:10:45 AM: To address issues that do not require attention, run:
10:10:45 AM: npm audit fix
10:10:45 AM: To address all issues (including breaking changes), run:
10:10:45 AM: npm audit fix --force
10:10:45 AM: Run `npm audit` for details.
10:10:45 AM: NPM modules installed
10:10:45 AM: Started restoring cached go cache
10:10:45 AM: Finished restoring cached go cache
10:10:45 AM: go version go1.16.5 linux/amd64
10:10:45 AM: go version go1.16.5 linux/amd64
10:10:45 AM: Installing missing commands
10:10:45 AM: Verify run directory
10:10:47 AM:
10:10:47 AM: ────────────────────────────────────────────────────────────────
10:10:47 AM: Netlify Build
10:10:47 AM: ────────────────────────────────────────────────────────────────
10:10:47 AM:
10:10:47 AM: ❯ Version
10:10:47 AM: @netlify/build 26.4.0
10:10:47 AM:
10:10:47 AM: ❯ Flags
10:10:47 AM: baseRelDir: true
10:10:47 AM: buildId: 622c9b99ddb8cd0008906e87
10:10:47 AM: deployId: 622c9b99ddb8cd0008906e89
10:10:47 AM:
10:10:47 AM: ❯ Current directory
10:10:47 AM: /opt/build/repo
10:10:47 AM:
10:10:47 AM: ❯ Config file
10:10:47 AM: No config file was defined: using default values.
10:10:47 AM:
10:10:47 AM: ❯ Context
10:10:47 AM: production
10:10:47 AM:
10:10:47 AM: ❯ Loading plugins
10:10:47 AM: - @netlify/plugin-gatsby@2.1.2 from Netlify app
10:10:48 AM:
10:10:48 AM: ────────────────────────────────────────────────────────────────
10:10:48 AM: 1. @netlify/plugin-gatsby (onPreBuild event)
10:10:48 AM: ────────────────────────────────────────────────────────────────
10:10:48 AM:
10:10:49 AM: Found a Gatsby cache. We’re about to go FAST. ⚡️
10:10:49 AM: public [
10:10:49 AM: '231-f55fdb4ebf039f846507.js',
10:10:49 AM: '231-f55fdb4ebf039f846507.js.map',
10:10:49 AM: '404',
10:10:49 AM: '404.html',
10:10:49 AM: '610-06b9a00cfa31c59bb1db.js',
10:10:49 AM: '610-06b9a00cfa31c59bb1db.js.map',
10:10:49 AM: '898-0d1071e12936c433a371.js',
10:10:49 AM: '898-0d1071e12936c433a371.js.map',
10:10:49 AM: '_redirects',
10:10:49 AM: 'app-bbb31a455a3a957ec390.js',
10:10:49 AM: 'app-bbb31a455a3a957ec390.js.LICENSE.txt',
10:10:49 AM: 'app-bbb31a455a3a957ec390.js.map',
10:10:49 AM: 'chunk-map.json',
10:10:49 AM: 'component---src-pages-404-js-dc2a08d0fcbf27481b57.js',
10:10:49 AM: 'component---src-pages-404-js-dc2a08d0fcbf27481b57.js.map',
10:10:49 AM: 'component---src-pages-index-js-0cafb46d0f3fcd7bf276.js',
10:10:49 AM: 'component---src-pages-index-js-0cafb46d0f3fcd7bf276.js.LICENSE.txt',
10:10:49 AM: 'component---src-pages-index-js-0cafb46d0f3fcd7bf276.js.map',
10:10:49 AM: 'component---src-pages-index-js-c97ff32b6c2d6f183f7c.js',
10:10:49 AM: 'component---src-pages-index-js-c97ff32b6c2d6f183f7c.js.LICENSE.txt',
10:10:49 AM: 'component---src-pages-index-js-c97ff32b6c2d6f183f7c.js.map',
10:10:49 AM: 'component---src-templates-logos-js-342c6980cbf2a174a265.js',
10:10:49 AM: 'component---src-templates-logos-js-342c6980cbf2a174a265.js.map',
10:10:49 AM: 'component---src-templates-proyectos-js-5edc70db0576294097c5.js',
10:10:49 AM: 'component---src-templates-proyectos-js-5edc70db0576294097c5.js.map',
10:10:49 AM: 'dd49ae8c9d98c2c653ec7d5be601e07010a1341d-ef66ef03bc83f92a5d34.js',
10:10:49 AM: 'dd49ae8c9d98c2c653ec7d5be601e07010a1341d-ef66ef03bc83f92a5d34.js.map',
10:10:49 AM: 'favicon-32x32.png',
10:10:49 AM: 'framework-558369a56c17c5d565b2.js',
10:10:49 AM: 'framework-558369a56c17c5d565b2.js.LICENSE.txt',
10:10:49 AM: 'framework-558369a56c17c5d565b2.js.map',
10:10:49 AM: 'icons',
10:10:49 AM: 'index.html',
10:10:49 AM: 'logo1',
10:10:49 AM: 'logo3',
10:10:49 AM: 'logo4',
10:10:49 AM: 'manifest.webmanifest',
10:10:49 AM: 'page-data',
10:10:49 AM: 'polyfill-4044ec1a3caa48777084.js',
10:10:49 AM: 'polyfill-4044ec1a3caa48777084.js.map',
10:10:49 AM: 'pro1',
10:10:49 AM: 'pro2',
10:10:49 AM: 'pro3',
10:10:49 AM: 'sitemap',
10:10:49 AM: 'static',
10:10:49 AM: 'styles.a28648e7a15a8ae27761.css',
10:10:49 AM: 'styles.e4933268ffdc55165af5.css',
10:10:49 AM: 'webpack-runtime-42f78e38f483376db265.js',
10:10:49 AM: 'webpack-runtime-42f78e38f483376db265.js.map',
10:10:49 AM: 'webpack-runtime-508edc402fc715452d4e.js',
10:10:49 AM: 'webpack-runtime-508edc402fc715452d4e.js.map',
10:10:49 AM: 'webpack.stats.json'
10:10:49 AM: ]
10:10:49 AM: /opt/build/repo/.cache [
10:10:49 AM: '_this_is_virtual_fs_path_',
10:10:49 AM: 'api-runner-browser-plugins.js',
10:10:49 AM: 'api-runner-browser.js',
10:10:49 AM: 'api-runner-ssr.js',
10:10:49 AM: 'api-ssr-docs.js',
10:10:49 AM: 'app.js',
10:10:49 AM: 'async-requires.js',
10:10:49 AM: 'babelState.json',
10:10:49 AM: 'blank.css',
10:10:49 AM: 'caches',
10:10:49 AM: 'caches-lmdb',
10:10:49 AM: 'commonjs',
10:10:49 AM: 'css-to-object.js',
10:10:49 AM: 'data',
10:10:49 AM: 'debug-log.js',
10:10:49 AM: 'default-html.js',
10:10:49 AM: 'dev-loader.js',
10:10:49 AM: 'develop-static-entry.js',
10:10:49 AM: 'dummy.js',
10:10:49 AM: 'emitter.js',
10:10:49 AM: 'ensure-resources.js',
10:10:49 AM: 'error-overlay-handler.js',
10:10:49 AM: 'fast-refresh-overlay',
10:10:49 AM: 'find-path.js',
10:10:49 AM: 'functions',
10:10:49 AM: 'gatsby-browser-entry.js',
10:10:49 AM: 'loader.js',
10:10:49 AM: 'loading-indicator',
10:10:49 AM: 'match-paths.json',
10:10:49 AM: 'navigation.js',
10:10:49 AM: 'normalize-page-path.js',
10:10:49 AM: 'page-renderer.js',
10:10:49 AM: 'page-ssr',
10:10:49 AM: 'pages.json',
10:10:49 AM: 'polyfill-entry.js',
10:10:49 AM: 'prefetch.js',
10:10:49 AM: 'production-app.js',
10:10:49 AM: 'public-page-renderer-dev.js',
10:10:49 AM: 'public-page-renderer-prod.js',
10:10:49 AM: 'public-page-renderer.js',
10:10:49 AM: 'query-engine',
10:10:49 AM: 'query-result-store.js',
10:10:49 AM: 'react-lifecycles-compat.js',
10:10:49 AM: 'redirect-utils.js',
10:10:49 AM: 'redirects.json',
10:10:49 AM: 'redux',
10:10:49 AM: 'register-service-worker.js',
10:10:49 AM: 'root.js',
10:10:49 AM: 'route-announcer-props.js',
10:10:49 AM: 'schema.gql',
10:10:49 AM: 'server-utils',
10:10:49 AM: 'shadow-portal.js',
10:10:49 AM: 'socketIo.js',
10:10:49 AM: 'ssr-builtin-trackers',
10:10:49 AM: 'ssr-develop-static-entry.js',
10:10:49 AM: 'static-entry.js',
10:10:49 AM: 'strip-prefix.js',
10:10:49 AM: 'sync-requires.js',
10:10:49 AM: 'test-require-error.js',
10:10:49 AM: 'webpack',
10:10:49 AM: 'worker'
10:10:49 AM: ]
10:10:49 AM: Please install `gatsby-plugin-netlify` and enable it in your gatsby-config.js. https://www.gatsbyjs.com/plugins/gatsby-plugin-netlify/
10:10:49 AM:
10:10:49 AM: (@netlify/plugin-gatsby onPreBuild completed in 486ms)
10:10:49 AM:
10:10:49 AM: ────────────────────────────────────────────────────────────────
10:10:49 AM: 2. Build command from Netlify app
10:10:49 AM: ────────────────────────────────────────────────────────────────
10:10:49 AM:
10:10:49 AM: $ npm run build
10:10:49 AM: > unique-webs@1.0.0 build
10:10:49 AM: > gatsby build
10:10:52 AM: success compile gatsby files - 0.717s
10:10:52 AM: success load gatsby config - 0.046s
10:10:52 AM: success load plugins - 0.819s
10:10:52 AM: success onPreInit - 0.009s
10:10:52 AM: success delete worker cache from previous builds - 0.001s
10:10:52 AM: info One or more of your plugins have changed since the last time you ran Gatsby. As
10:10:53 AM: a precaution, we're deleting your site's cache to ensure there's no stale data.
success initialize cache - 0.158s
10:10:53 AM: success copy gatsby files - 0.112s
10:10:53 AM: success Compiling Gatsby Functions - 0.214s
10:10:53 AM: success onPreBootstrap - 0.224s
10:10:53 AM: success loading DatoCMS schema - 0.538s
10:10:54 AM: success createSchemaCustomization - 0.577s
10:10:56 AM: success loading DatoCMS content - 2.718s
10:10:57 AM: success Checking for changed pages - 0.000s
10:10:57 AM: success source and transform nodes - 3.079s
10:10:57 AM: info Writing GraphQL type definitions to /opt/build/repo/.cache/schema.gql
10:10:58 AM: success building schema - 1.476s
10:10:58 AM: [
10:10:58 AM: [Object: null prototype] { slug: 'pro2' },
10:10:58 AM: [Object: null prototype] { slug: 'pro3' },
10:10:58 AM: [Object: null prototype] { slug: 'pro1' }
10:10:58 AM: ]
10:10:58 AM: [
10:10:58 AM: [Object: null prototype] { slug: 'pro2' },
10:10:58 AM: [Object: null prototype] { slug: 'pro3' },
10:10:58 AM: [Object: null prototype] { slug: 'pro1' }
10:10:58 AM: ]
10:10:58 AM: [
10:10:58 AM: [Object: null prototype] { slug: 'pro2' },
10:10:58 AM: [Object: null prototype] { slug: 'pro3' },
10:10:58 AM: [Object: null prototype] { slug: 'pro1' }
10:10:58 AM: ]
10:10:58 AM: [
10:10:58 AM: [Object: null prototype] { slug: 'pro2' },
10:10:58 AM: [Object: null prototype] { slug: 'pro3' },
10:10:58 AM: [Object: null prototype] { slug: 'pro1' }
10:10:58 AM: ]
10:10:58 AM: success createPages - 0.102s
10:10:58 AM: success createPagesStatefully - 0.114s
10:10:58 AM: info Total nodes: 172, SitePage nodes: 9 (use --verbose for breakdown)
10:10:58 AM: success Checking for changed pages - 0.000s
10:10:58 AM: success Cleaning up stale page-data - 0.002s
10:10:58 AM: success onPreExtractQueries - 0.000s
10:11:05 AM: success loading DatoCMS schema - 0.000s
10:11:05 AM: success loading DatoCMS schema - 0.000s
10:11:05 AM: success loading DatoCMS schema - 0.000s
10:11:06 AM: success extract queries from components - 7.310s
10:11:06 AM: success write out redirect data - 0.065s
10:11:06 AM: success Build manifest and related icons - 0.810s
10:11:07 AM: success onPostBootstrap - 0.824s
10:11:07 AM: info bootstrap finished - 17.667s
10:11:07 AM: success write out requires - 0.076s
10:11:28 AM: success Building production JavaScript and CSS bundles - 21.653s
10:11:46 AM: success Building HTML renderer - 17.295s
10:11:46 AM: success Execute page configs - 0.024s
10:11:46 AM: success Caching Webpack compilations - 0.000s
10:11:46 AM: warning [gatsby-transformer-sharp] The "fixed" and "fluid" resolvers are now deprecated. Switch to "gatsby-plugin-image" for better performance and a simpler API. See https://gatsby.dev/migrate-images to learn how.
10:11:46 AM: Error downloading https://www.datocms-assets.com/54701/1630452375-kumaway.png?auto=&dpr=0.01&fm=png&q=30&w=2008 to generate blurred placeholder!: ENOENT: no such file or directory, lstat '/opt/build/repo/.cache/caches/gatsby-source-datocms/tmp-f6e3cc1937534fad82194c84ff2289d2.png'
10:11:46 AM: Error downloading https://www.datocms-assets.com/54701/1631539335-logocarandaygris.webp?auto=format&lqip=blurhash to generate Blurhash placeholder!: ENOENT: no such file or directory, lstat '/opt/build/repo/.cache/caches/gatsby-source-datocms/tmp-2a5ca0a1d4a673b3b5fd11f2ee2a3719.webp'
10:11:46 AM: Error downloading https://www.datocms-assets.com/54701/1631545595-micromundos.webp?auto=format&lqip=blurhash to generate Blurhash placeholder!: ENOENT: no such file or directory, lstat '/opt/build/repo/.cache/caches/gatsby-source-datocms/tmp-5fcb663dc9004775cc7f9f4d68636f20.webp'
10:11:49 AM: success run queries in workers - 3.280s - 16/16 4.88/s
10:11:49 AM: success Running gatsby-plugin-sharp.IMAGE_PROCESSING jobs - 3.176s - 2/2 0.63/s
10:11:49 AM: success Merge worker state - 0.002s
10:11:49 AM: success Rewriting compilation hashes - 0.000s
10:11:49 AM: success Writing page-data.json files to public directory - 0.002s - 9/9 3750.43/s
10:11:54 AM: error Page data from page-data.json for the failed page "/": {
10:11:54 AM: "componentChunkName": "component---src-pages-index-js",
10:11:54 AM: "path": "/",
10:11:54 AM: "result": {
10:11:54 AM: "pageContext": {}
10:11:54 AM: },
10:11:54 AM: "staticQueryHashes": [
10:11:54 AM: "1239788033",
10:11:54 AM: "2001726529",
10:11:54 AM: "208619311",
10:11:54 AM: "3258338902",
10:11:54 AM: "380358074",
10:11:54 AM: "853225555",
10:11:54 AM: "948868996"
10:11:54 AM: ]
10:11:54 AM: }
10:11:54 AM: failed Building static HTML for pages - 4.094s
10:11:54 AM: error Building static HTML failed for path "/"
10:11:54 AM:
10:11:54 AM: > 1 | import _extends from '@babel/runtime/helpers/esm/extends';
10:11:54 AM: | ^
10:11:54 AM: 2 | import * as React from 'react';
10:11:55 AM: Creating deploy upload records
10:11:54 AM: 3 | import { useContext, createElement, Fragment } from 'react';
10:11:54 AM: 4 | import isPropValid from '@emotion/is-prop-valid';
10:11:54 AM:
10:11:54 AM: WebpackError: Minified React error #130; visit https://reactjs.org/docs/error- decoder.html?invariant=130&args[x]=object&args[]= for the full message or use t he non-minified dev environment for full errors and additional helpful warning s.
10:11:54 AM:
10:11:54 AM: - emotion-styled-base.esm.js:1
10:11:55 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:11:54 AM: [unique-webs]/[@emotion]/styled/base/dist/emotion-styled-base.esm.js:1:59
10:11:54 AM:
10:11:54 AM: - inheritsLoose.js:7
10:11:54 AM: [unique-webs]/[@babel]/runtime/helpers/inheritsLoose.js:7:1
10:11:54 AM:
10:11:54 AM: - static-entry.js:294
10:11:54 AM: unique-webs/.cache/static-entry.js:294:22
10:11:54 AM:
10:11:54 AM: - emotion-styled-base.esm.js:126
10:11:54 AM: [unique-webs]/[@emotion]/styled/base/dist/emotion-styled-base.esm.js:126:1
10:11:54 AM:
10:11:54 AM:
10:11:54 AM:
10:11:54 AM: ────────────────────────────────────────────────────────────────
10:11:54 AM: "build.command" failed
10:11:54 AM: ────────────────────────────────────────────────────────────────
10:11:54 AM:
10:11:54 AM: Error message
10:11:54 AM: Command failed with exit code 1: npm run build
10:11:54 AM:
10:11:54 AM: Error location
10:11:54 AM: In Build command from Netlify app:
10:11:54 AM: npm run build
10:11:54 AM:
10:11:54 AM: Resolved config
10:11:54 AM: build:
10:11:54 AM: command: npm run build
10:11:54 AM: commandOrigin: ui
10:11:54 AM: publish: /opt/build/repo/public
10:11:54 AM: publishOrigin: ui
10:11:54 AM: plugins:
10:11:54 AM: - inputs: {}
10:11:54 AM: origin: ui
10:11:54 AM: package: '@netlify/plugin-gatsby'
10:11:54 AM: redirects:
10:11:55 AM: - from: /api/*
status: 200
to: /.netlify/functions/__api
Caching artifacts
10:11:55 AM: Started saving node modules
10:11:55 AM: Finished saving node modules
10:11:55 AM: Started saving build plugins
10:11:55 AM: Finished saving build plugins
10:11:55 AM: Started saving pip cache
10:11:55 AM: Finished saving pip cache
10:11:55 AM: Started saving emacs cask dependencies
10:11:55 AM: Finished saving emacs cask dependencies
10:11:55 AM: Started saving maven dependencies
10:11:55 AM: Finished saving maven dependencies
10:11:55 AM: Started saving boot dependencies
10:11:55 AM: Finished saving boot dependencies
10:11:55 AM: Started saving rust rustup cache
10:11:55 AM: Finished saving rust rustup cache
10:11:55 AM: Started saving go dependencies
10:11:55 AM: Finished saving go dependencies
10:11:55 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:11:55 AM: Failing build: Failed to build site
10:11:55 AM: Finished processing build request in 1m58.691145193s