fly deploy
Update available 0.1.8 → v0.1.12.
Run “fly.exe version upgrade” to upgrade.
==> Verifying app config
Validating D:\VScode\grab-market-server\fly.toml
Platform: machines
✓ Configuration is valid
→ Verified app config
==> Building image
Remote builder fly-builder-blue-feather-4034 ready
==> Creating build context
→ Creating build context done
==> Building image with Docker
→ docker host: 20.10.12 linux x86_64
[+] Building 29.7s (0/1)
[+] Building 16.1s (12/14)
=> CACHED [internal] load remote build context 0.0s
=> CACHED copy /context / 0.0s
=> resolve image config for docker.io/docker/dockerfile:1 2.0s
=> CACHED docker-image://docker.io/docker/dockerfile:1@sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a3 0.0s
=> [internal] load metadata for Docker 0.6s
=> [base 1/2] FROM Docker 0.0s
=> CACHED [base 2/2] WORKDIR /app 0.0s
=> CACHED [build 1/6] RUN apt-get update -qq && apt-get install -y python pkg-config build-essential 0.0s
=> CACHED [build 2/6] COPY --link package.json package-lock.json ./ 0.0s
=> CACHED [build 3/6] RUN npm ci --include=dev 0.0s
=> CACHED [build 4/6] COPY --link . . 0.0s
=> ERROR [build 5/6] RUN npm run build 13.3s
[build 5/6] RUN npm run build:
#11 0.942
#11 0.942 > grab-market-server@0.1.0 build
#11 0.942 > react-scripts build
#11 0.942
#11 3.368 Creating an optimized production build…
#11 13.25 Failed to compile.
#11 13.25
#11 13.25 ./src/App.js
#11 13.25 Line 6: ‘React’ must be in scope when using JSX react/react-in-jsx-scope
#11 13.25 Line 7: ‘React’ must be in scope when using JSX react/react-in-jsx-scope
#11 13.25 Line 8: ‘React’ must be in scope when using JSX react/react-in-jsx-scope
#11 13.25 Line 9: ‘React’ must be in scope when using JSX react/react-in-jsx-scope
#11 13.25 Line 10: ‘React’ must be in scope when using JSX react/react-in-jsx-scope
#11 13.25 Line 12: ‘React’ must be in scope when using JSX react/react-in-jsx-scope
#11 13.25
#11 13.25 Search for the keywords to learn more about each error.
#11 13.25
#11 13.25
Error: failed to fetch an image or build from source: error building: executor failed running [/bin/sh -c npm run build]: exit code: 1
How do you solve it?