Build failing that did work?

I have successfully deployed this site many times and everything worked ok. I went back to make a small CSS change and am now getting a build error. It’s a type error and is coming from Google maps.

It works locally, the previous deploy works so I wondering what might have changed on Netlify.

I have been playing with build commands but no joy?

Any suggestions are welcome

1:06:17 PM: Build ready to start
1:06:39 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
1:06:39 PM: build-image tag: v4.10.1
1:06:39 PM: buildbot version: 37262c48b1f3cfa88c6caed707d29b19aef6a5a7
1:06:39 PM: Fetching cached dependencies
1:06:39 PM: Failed to fetch cache, continuing with build
1:06:39 PM: Starting to prepare the repo for build
1:06:40 PM: No cached dependencies found. Cloning fresh repo
1:06:40 PM: git clone https://github.com/Jmac0/takelamfrontend
1:06:40 PM: Preparing Git Reference refs/heads/master
1:06:40 PM: Parsing package.json dependencies
1:06:41 PM: Starting build script
1:06:41 PM: Installing dependencies
1:06:41 PM: Python version set to 2.7
1:06:41 PM: Downloading and installing node v16.17.0...
1:06:41 PM: Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.xz...
1:06:42 PM: Computing checksum with sha256sum
1:06:42 PM: Checksums matched!
1:06:44 PM: Now using node v16.17.0 (npm v8.15.0)
1:06:44 PM: Started restoring cached build plugins
1:06:44 PM: Finished restoring cached build plugins
1:06:44 PM: Attempting ruby version 2.7.2, read from environment
1:06:45 PM: Using ruby version 2.7.2
1:06:45 PM: Using PHP version 8.0
1:06:45 PM: No npm workspaces detected
1:06:45 PM: Started restoring cached node modules
1:06:45 PM: Finished restoring cached node modules
1:06:45 PM: Installing NPM modules using NPM version 8.15.0
1:06:46 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
1:06:46 PM: npm WARN config location in the cache, and they are managed by
1:06:46 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
1:06:46 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
1:06:46 PM: npm WARN config location in the cache, and they are managed by
1:06:46 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
1:07:11 PM: npm WARN ERESOLVE overriding peer dependency
1:07:11 PM: npm WARN ERESOLVE overriding peer dependency
1:07:11 PM: npm WARN ERESOLVE overriding peer dependency
1:07:11 PM: npm WARN ERESOLVE overriding peer dependency
1:07:12 PM: npm WARN ERESOLVE overriding peer dependency
1:07:15 PM: npm WARN ERESOLVE overriding peer dependency
1:07:15 PM: npm WARN ERESOLVE overriding peer dependency
1:07:15 PM: npm WARN ERESOLVE overriding peer dependency
1:07:15 PM: npm WARN ERESOLVE overriding peer dependency
1:07:22 PM: npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
1:07:22 PM: npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
1:07:24 PM: npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
1:07:24 PM: npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
1:07:29 PM: npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
1:07:29 PM: npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
1:07:30 PM: npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
1:08:39 PM: added 1874 packages, and audited 1875 packages in 2m
1:08:39 PM: 259 packages are looking for funding
1:08:39 PM:   run `npm fund` for details
1:08:39 PM: 6 high severity vulnerabilities
1:08:39 PM: To address all issues (including breaking changes), run:
1:08:39 PM:   npm audit fix --force
1:08:39 PM: Run `npm audit` for details.
1:08:39 PM: NPM modules installed
1:08:40 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
1:08:40 PM: npm WARN config location in the cache, and they are managed by
1:08:40 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
1:08:40 PM: Started restoring cached go cache
1:08:40 PM: Finished restoring cached go cache
1:08:40 PM: Installing Go version 1.16.5 (requested 1.16.5)
1:08:43 PM: unset GOOS;
1:08:43 PM: unset GOARCH;
1:08:43 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.16.5.linux.amd64';
1:08:43 PM: export PATH="/opt/buildhome/.gimme/versions/go1.16.5.linux.amd64/bin:${PATH}";
1:08:43 PM: go version >&2;
1:08:43 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.16.5.linux.amd64.env"
1:08:43 PM: go version go1.16.5 linux/amd64
1:08:43 PM: Installing missing commands
1:08:43 PM: Verify run directory
1:08:44 PM: ​
1:08:44 PM: ────────────────────────────────────────────────────────────────
1:08:44 PM:   Netlify Build                                                 
1:08:44 PM: ────────────────────────────────────────────────────────────────
1:08:44 PM: ​
1:08:44 PM: ❯ Version
1:08:44 PM:   @netlify/build 27.17.1
1:08:44 PM: ​
1:08:44 PM: ❯ Flags
1:08:44 PM:   baseRelDir: true
1:08:44 PM:   buildId: 6319dab926153f00080d033e
1:08:44 PM:   deployId: 6319dab926153f00080d0340
1:08:44 PM: ​
1:08:44 PM: ❯ Current directory
1:08:44 PM:   /opt/build/repo
1:08:44 PM: ​
1:08:44 PM: ❯ Config file
1:08:44 PM:   No config file was defined: using default values.
1:08:44 PM: ​
1:08:44 PM: ❯ Context
1:08:44 PM:   production
1:08:44 PM: ​
1:08:44 PM: ────────────────────────────────────────────────────────────────
1:08:44 PM:   1. Build command from Netlify app                             
1:08:44 PM: ────────────────────────────────────────────────────────────────
1:08:44 PM: ​
1:08:44 PM: $ CI=false&&npm install && npm run build
1:08:45 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
1:08:45 PM: npm WARN config location in the cache, and they are managed by
1:08:45 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
1:08:46 PM: npm WARN ERESOLVE overriding peer dependency
1:08:46 PM: npm WARN While resolving: @react-spring/three@9.5.2
1:08:46 PM: npm WARN Found: react@16.8.6
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/react
1:08:46 PM: npm WARN   peer react@"^16.8.0  || >=17.0.0 || >=18.0.0" from @react-spring/konva@9.5.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-spring/konva
1:08:46 PM: npm WARN     @react-spring/konva@"~9.5.2" from react-spring@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring
1:08:46 PM: npm WARN   4 more (@react-spring/native, react-dom, react-konva, react-reconciler)
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Could not resolve dependency:
1:08:46 PM: npm WARN peer react@"^16.11.0  || >=17.0.0 || >=18.0.0" from @react-spring/three@9.5.2
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/@react-spring/three
1:08:46 PM: npm WARN   @react-spring/three@"~9.5.2" from react-spring@9.5.2
1:08:46 PM: npm WARN   node_modules/react-spring
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Conflicting peer dependency: react@18.2.0
1:08:46 PM: npm WARN node_modules/react
1:08:46 PM: npm WARN   peer react@"^16.11.0  || >=17.0.0 || >=18.0.0" from @react-spring/three@9.5.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-spring/three
1:08:46 PM: npm WARN     @react-spring/three@"~9.5.2" from react-spring@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring
1:08:46 PM: npm WARN ERESOLVE overriding peer dependency
1:08:46 PM: npm WARN While resolving: @react-three/fiber@8.7.2
1:08:46 PM: npm WARN Found: react@16.8.6
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/react
1:08:46 PM: npm WARN   peer react@"^16.8.0  || >=17.0.0 || >=18.0.0" from @react-spring/konva@9.5.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-spring/konva
1:08:46 PM: npm WARN     @react-spring/konva@"~9.5.2" from react-spring@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring
1:08:46 PM: npm WARN   4 more (@react-spring/native, react-dom, react-konva, react-reconciler)
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Could not resolve dependency:
1:08:46 PM: npm WARN peer react@">=18.0" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/@react-three/fiber
1:08:46 PM: npm WARN   peer @react-three/fiber@">=6.0" from @react-spring/three@9.5.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-spring/three
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Conflicting peer dependency: react@18.2.0
1:08:46 PM: npm WARN node_modules/react
1:08:46 PM: npm WARN   peer react@">=18.0" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-three/fiber
1:08:46 PM: npm WARN     peer @react-three/fiber@">=6.0" from @react-spring/three@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring/node_modules/@react-spring/three
1:08:46 PM: npm WARN ERESOLVE overriding peer dependency
1:08:46 PM: npm WARN While resolving: @react-three/fiber@8.7.2
1:08:46 PM: npm WARN Found: react-dom@16.8.6
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/react-dom
1:08:46 PM: npm WARN   peer react-dom@"16.8.x" from react-konva@16.8.6
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/react-konva
1:08:46 PM: npm WARN     peer react-konva@"^16.8.0  || ^17.0.0" from @react-spring/konva@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring/node_modules/@react-spring/konva
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Could not resolve dependency:
1:08:46 PM: npm WARN peerOptional react-dom@">=18.0" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/@react-three/fiber
1:08:46 PM: npm WARN   peer @react-three/fiber@">=6.0" from @react-spring/three@9.5.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-spring/three
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Conflicting peer dependency: react-dom@18.2.0
1:08:46 PM: npm WARN node_modules/react-dom
1:08:46 PM: npm WARN   peerOptional react-dom@">=18.0" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-three/fiber
1:08:46 PM: npm WARN     peer @react-three/fiber@">=6.0" from @react-spring/three@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring/node_modules/@react-spring/three
1:08:46 PM: npm WARN ERESOLVE overriding peer dependency
1:08:46 PM: npm WARN While resolving: react-native@0.70.0
1:08:46 PM: npm WARN Found: react@16.8.6
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/react
1:08:46 PM: npm WARN   peer react@"^16.8.0  || >=17.0.0 || >=18.0.0" from @react-spring/konva@9.5.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-spring/konva
1:08:46 PM: npm WARN     @react-spring/konva@"~9.5.2" from react-spring@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring
1:08:46 PM: npm WARN   4 more (@react-spring/native, react-dom, react-konva, react-reconciler)
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Could not resolve dependency:
1:08:46 PM: npm WARN peer react@"18.1.0" from react-native@0.70.0
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/react-native
1:08:46 PM: npm WARN   peer react-native@">=0.58" from @react-spring/native@9.5.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-spring/native
1:08:46 PM: npm WARN   1 more (@react-three/fiber)
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Conflicting peer dependency: react@18.1.0
1:08:46 PM: npm WARN node_modules/react
1:08:46 PM: npm WARN   peer react@"18.1.0" from react-native@0.70.0
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/react-native
1:08:46 PM: npm WARN     peer react-native@">=0.58" from @react-spring/native@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring/node_modules/@react-spring/native
1:08:46 PM: npm WARN     1 more (@react-three/fiber)
1:08:46 PM: npm WARN ERESOLVE overriding peer dependency
1:08:46 PM: npm WARN While resolving: react-reconciler@0.20.4
1:08:46 PM: npm WARN Found: react@17.0.2
1:08:46 PM: npm WARN node_modules/react
1:08:46 PM: npm WARN   react@"^17.0.2" from the root project
1:08:46 PM: npm WARN   59 more (@fortawesome/react-fontawesome, ...)
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Could not resolve dependency:
1:08:46 PM: npm WARN peer react@"^16.0.0" from react-reconciler@0.20.4
1:08:46 PM: npm WARN node_modules/react-zdog/node_modules/react-reconciler
1:08:46 PM: npm WARN   react-reconciler@"^0.20.4" from react-zdog@1.0.11
1:08:46 PM: npm WARN   node_modules/react-zdog
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Conflicting peer dependency: react@16.14.0
1:08:46 PM: npm WARN node_modules/react
1:08:46 PM: npm WARN   peer react@"^16.0.0" from react-reconciler@0.20.4
1:08:46 PM: npm WARN   node_modules/react-zdog/node_modules/react-reconciler
1:08:46 PM: npm WARN     react-reconciler@"^0.20.4" from react-zdog@1.0.11
1:08:46 PM: npm WARN     node_modules/react-zdog
1:08:46 PM: npm WARN ERESOLVE overriding peer dependency
1:08:46 PM: npm WARN While resolving: react-reconciler@0.27.0
1:08:46 PM: npm WARN Found: react@16.8.6
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/react
1:08:46 PM: npm WARN   peer react@"^16.8.0  || >=17.0.0 || >=18.0.0" from @react-spring/konva@9.5.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-spring/konva
1:08:46 PM: npm WARN     @react-spring/konva@"~9.5.2" from react-spring@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring
1:08:46 PM: npm WARN   4 more (@react-spring/native, react-dom, react-konva, react-reconciler)
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Could not resolve dependency:
1:08:46 PM: npm WARN peer react@"^18.0.0" from react-reconciler@0.27.0
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/@react-three/fiber/node_modules/react-reconciler
1:08:46 PM: npm WARN   react-reconciler@"^0.27.0" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-three/fiber
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Conflicting peer dependency: react@18.2.0
1:08:46 PM: npm WARN node_modules/react
1:08:46 PM: npm WARN   peer react@"^18.0.0" from react-reconciler@0.27.0
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-three/fiber/node_modules/react-reconciler
1:08:46 PM: npm WARN     react-reconciler@"^0.27.0" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN     node_modules/react-spring/node_modules/@react-three/fiber
1:08:46 PM: npm WARN ERESOLVE overriding peer dependency
1:08:46 PM: npm WARN While resolving: react-use-measure@2.1.1
1:08:46 PM: npm WARN Found: react@16.8.6
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/react
1:08:46 PM: npm WARN   peer react@"^16.8.0  || >=17.0.0 || >=18.0.0" from @react-spring/konva@9.5.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-spring/konva
1:08:46 PM: npm WARN     @react-spring/konva@"~9.5.2" from react-spring@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring
1:08:46 PM: npm WARN   4 more (@react-spring/native, react-dom, react-konva, react-reconciler)
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Could not resolve dependency:
1:08:46 PM: npm WARN peer react@">=16.13" from react-use-measure@2.1.1
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/@react-three/fiber/node_modules/react-use-measure
1:08:46 PM: npm WARN   react-use-measure@"^2.1.1" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-three/fiber
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Conflicting peer dependency: react@18.2.0
1:08:46 PM: npm WARN node_modules/react
1:08:46 PM: npm WARN   peer react@">=16.13" from react-use-measure@2.1.1
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-three/fiber/node_modules/react-use-measure
1:08:46 PM: npm WARN     react-use-measure@"^2.1.1" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN     node_modules/react-spring/node_modules/@react-three/fiber
1:08:46 PM: npm WARN ERESOLVE overriding peer dependency
1:08:46 PM: npm WARN While resolving: react-use-measure@2.1.1
1:08:46 PM: npm WARN Found: react-dom@16.8.6
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/react-dom
1:08:46 PM: npm WARN   peer react-dom@"16.8.x" from react-konva@16.8.6
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/react-konva
1:08:46 PM: npm WARN     peer react-konva@"^16.8.0  || ^17.0.0" from @react-spring/konva@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring/node_modules/@react-spring/konva
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Could not resolve dependency:
1:08:46 PM: npm WARN peer react-dom@">=16.13" from react-use-measure@2.1.1
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/@react-three/fiber/node_modules/react-use-measure
1:08:46 PM: npm WARN   react-use-measure@"^2.1.1" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-three/fiber
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Conflicting peer dependency: react-dom@18.2.0
1:08:46 PM: npm WARN node_modules/react-dom
1:08:46 PM: npm WARN   peer react-dom@">=16.13" from react-use-measure@2.1.1
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-three/fiber/node_modules/react-use-measure
1:08:46 PM: npm WARN     react-use-measure@"^2.1.1" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN     node_modules/react-spring/node_modules/@react-three/fiber
1:08:46 PM: npm WARN ERESOLVE overriding peer dependency
1:08:46 PM: npm WARN While resolving: suspend-react@0.0.8
1:08:46 PM: npm WARN Found: react@16.8.6
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/react
1:08:46 PM: npm WARN   peer react@"^16.8.0  || >=17.0.0 || >=18.0.0" from @react-spring/konva@9.5.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-spring/konva
1:08:46 PM: npm WARN     @react-spring/konva@"~9.5.2" from react-spring@9.5.2
1:08:46 PM: npm WARN     node_modules/react-spring
1:08:46 PM: npm WARN   4 more (@react-spring/native, react-dom, react-konva, react-reconciler)
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Could not resolve dependency:
1:08:46 PM: npm WARN peer react@">=17.0" from suspend-react@0.0.8
1:08:46 PM: npm WARN node_modules/react-spring/node_modules/@react-three/fiber/node_modules/suspend-react
1:08:46 PM: npm WARN   suspend-react@"^0.0.8" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-three/fiber
1:08:46 PM: npm WARN
1:08:46 PM: npm WARN Conflicting peer dependency: react@18.2.0
1:08:46 PM: npm WARN node_modules/react
1:08:46 PM: npm WARN   peer react@">=17.0" from suspend-react@0.0.8
1:08:46 PM: npm WARN   node_modules/react-spring/node_modules/@react-three/fiber/node_modules/suspend-react
1:08:46 PM: npm WARN     suspend-react@"^0.0.8" from @react-three/fiber@8.7.2
1:08:46 PM: npm WARN     node_modules/react-spring/node_modules/@react-three/fiber
1:08:47 PM: up to date, audited 1875 packages in 2s
1:08:47 PM: 259 packages are looking for funding
1:08:47 PM:   run `npm fund` for details
1:08:47 PM: 6 high severity vulnerabilities
1:08:47 PM: To address all issues (including breaking changes), run:
1:08:47 PM:   npm audit fix --force
1:08:47 PM: Run `npm audit` for details.
1:08:47 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
1:08:47 PM: npm WARN config location in the cache, and they are managed by
1:08:47 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
1:08:47 PM: > takelamreact@0.1.0 build
1:08:47 PM: > react-scripts build
1:08:50 PM: Creating an optimized production build...
1:09:20 PM: Failed to compile.
1:09:20 PM: 
1:09:20 PM: TS2769: No overload matches this call.
1:09:20 PM:   The last overload gave the following error.
1:09:20 PM:     Argument of type '{ map: any; }' is not assignable to parameter of type 'Partial<unknown> & Attributes'.
1:09:20 PM:       Object literal may only specify known properties, and 'map' does not exist in type 'Partial<unknown> & Attributes'.
1:09:20 PM:     83 |         if (React.isValidElement(child)) {
1:09:20 PM:     84 |           // set the map prop on the child component
1:09:20 PM:   > 85 |           return React.cloneElement(child, { map });
1:09:20 PM:        |                                              ^^^
1:09:20 PM:     86 |         }
1:09:20 PM:     87 |       })}
1:09:20 PM:     88 |     </>
1:09:20 PM: ​
1:09:20 PM: ────────────────────────────────────────────────────────────────
1:09:20 PM:   "build.command" failed                                        
1:09:20 PM: ────────────────────────────────────────────────────────────────
1:09:20 PM: ​
1:09:20 PM:   Error message
1:09:20 PM:   Command failed with exit code 1: CI=false&&npm install && npm run build (https://ntl.fyi/exit-code-1)
1:09:20 PM: ​
1:09:20 PM:   Error location
1:09:20 PM:   In Build command from Netlify app:
1:09:20 PM:   CI=false&&npm install && npm run build
1:09:20 PM: ​
1:09:20 PM:   Resolved config
1:09:20 PM:   build:
1:09:20 PM:     command: CI=false&&npm install && npm run build
1:09:20 PM:     commandOrigin: ui
1:09:20 PM:     environment:
1:09:20 PM:       - REACT_APP_BASE_URL
1:09:20 PM:       - REACT_APP_GOOGLE_API
1:09:20 PM:     publish: /opt/build/repo/build
1:09:20 PM:     publishOrigin: ui
1:09:20 PM: Caching artifacts
1:09:20 PM: Started saving node modules
1:09:20 PM: Finished saving node modules
1:09:20 PM: Started saving build plugins
1:09:20 PM: Finished saving build plugins
1:09:20 PM: Started saving pip cache
1:09:20 PM: Finished saving pip cache
1:09:20 PM: Started saving emacs cask dependencies
1:09:20 PM: Finished saving emacs cask dependencies
1:09:20 PM: Started saving maven dependencies
1:09:20 PM: Finished saving maven dependencies
1:09:20 PM: Started saving boot dependencies
1:09:20 PM: Finished saving boot dependencies
1:09:20 PM: Started saving rust rustup cache
1:09:20 PM: Finished saving rust rustup cache
1:09:20 PM: Started saving go dependencies
1:09:20 PM: Finished saving go dependencies
1:09:21 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:09:21 PM: Creating deploy upload records
1:09:21 PM: Failing build: Failed to build site
1:09:21 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
1:09:22 PM: Finished processing build request in 2m42.299907768s

Hey there, @JamieMac :wave:

Thanks for reaching out! Can you please share your package.json with us? It would be helpful to see what dependencies you have installed in your repo.

Hi Hillary

Thanks for getting back to me, I’ve copied the package.json in. After the build failed I updated the Google packages & types just in case but it made no difference.

{
  "name": "takelamreact",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@fortawesome/fontawesome-svg-core": "^6.1.1",
    "@fortawesome/free-regular-svg-icons": "^6.1.1",
    "@fortawesome/free-solid-svg-icons": "^6.1.1",
    "@fortawesome/react-fontawesome": "^0.1.18",
    "@googlemaps/react-wrapper": "^1.1.27",
    "@styled-icons/bootstrap": "^10.34.0",
    "@styled-icons/boxicons-regular": "^10.38.0",
    "@styled-icons/entypo": "^10.34.0",
    "@styled-icons/evaicons-solid": "^10.34.0",
    "@styled-icons/fluentui-system-filled": "^10.35.0",
    "@styled-icons/fluentui-system-regular": "^10.35.0",
    "@styled-icons/icomoon": "^10.34.0",
    "@testing-library/jest-dom": "^5.16.2",
    "@testing-library/react": "^12.1.2",
    "@testing-library/user-event": "^13.5.0",
    "@types/jest": "^27.4.0",
    "@types/node": "^16.11.22",
    "@types/react": "^17.0.39",
    "@types/react-dom": "^17.0.14",
    "@types/react-transition-group": "^4.4.4",
    "@types/styled-components": "^5.1.22",
    "add": "^2.0.6",
    "axios": "^0.26.0",
    "babel-plugin-macros": "^3.1.0",
    "draft-js": "^0.11.7",
    "draftjs-to-html": "^0.9.1",
    "eslint-config-prettier": "^8.3.0",
    "fast-equals": "^3.0.0",
    "html-to-draftjs": "^1.5.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-draft-wysiwyg": "^1.14.7",
    "react-is": "^18.0.0",
    "react-router-dom": "^6.2.1",
    "react-scripts": "5.0.0",
    "react-spring": "^9.4.4",
    "react-to-print": "^2.14.7",
    "react-transition-group": "^4.4.2",
    "styled-components": "^5.3.3",
    "styled-icons": "^10.45.0",
    "svgo": "^2.8.0",
    "ts-node": "^10.7.0",
    "typescript": "^4.5.5",
    "web-vitals": "^2.1.4",
    "yarn": "^1.22.18"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ],
    "rules": {
      "no-unused-vars": 0,
      "@typescript-eslint/no-unused-vars": 0
    }
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@googlemaps/typescript-guards": "^2.0.2",
    "@types/draftjs-to-html": "^0.8.1",
    "@types/google.maps": "^3.50.0",
    "@types/html-to-draftjs": "^1.4.0",
    "@types/react-draft-wysiwyg": "^1.13.4",
    "@typescript-eslint/eslint-plugin": "^5.11.0",
    "@typescript-eslint/parser": "^5.11.0",
    "eslint": "^8.8.0",
    "eslint-config-airbnb": "^19.0.4",
    "eslint-plugin-import": "^2.25.4",
    "eslint-plugin-jsx-a11y": "^6.5.1",
    "eslint-plugin-prettier": "^4.0.0",
    "eslint-plugin-react": "^7.28.0",
    "eslint-plugin-react-hooks": "^4.3.0",
    "prettier": "^2.5.1"
  }
}

Thanks

Hi Jamie, sorry to bother you but did you get the solution? I’m stuck with the same error

Felipe

Hi Fxaus

Yeah I fixed it, it’s a bit of a hack but, for now, I cast the { map } object to any. It builds fine but I could do with sorting out the types properly.

  if (React.isValidElement(child)) {

return React.cloneElement(child, { map } as any);

   }       })}
1 Like

Great Jamie, thank you… I’ve just opened a issue in the google map type library
Here is the link if you want to add something