Astro 3 upgrade help: fonts

Hey all, my site is calm-hummingbird-b765dd.netlify.app.

I am a hobbyist coder and this is the first time I have attempted an upgrade on Astro 3.
I thought I had done everything right (it runs locally) but I keep running into deploy errors.
The log will show issues with fonts, and please note that I don’t use a vite config file.

Here’s the latest attempt’s log:

7:55:44 PM: build-image version: 0c5695ad82eb9b0111196b4ab87e76fc88dfb543 (focal)
7:55:44 PM: buildbot version: 44bdaa9bbaa9912838fe50ed0826ccd09db9f453
7:55:44 PM: Fetching cached dependencies
7:55:44 PM: Failed to fetch cache, continuing with build
7:55:44 PM: Starting to prepare the repo for build
7:55:44 PM: No cached dependencies found. Cloning fresh repo
7:55:44 PM: git clone --filter=blob:none https://github.com/echilundo/relentless-zanmato
7:55:44 PM: Preparing Git Reference refs/heads/main
7:55:46 PM: Starting to install dependencies
7:55:46 PM: Python version set to 3.8
7:55:46 PM: Attempting Ruby version 2.7.2, read from environment
7:55:46 PM: Using Ruby version 2.7.2
7:55:47 PM: Started restoring cached go cache
7:55:47 PM: Finished restoring cached go cache
7:55:47 PM: go version go1.19.13 linux/amd64
7:55:47 PM: Using PHP version 8.0
7:55:48 PM: v18.18.2 is already installed.
7:55:49 PM: Now using node v18.18.2 (npm v9.8.1)
7:55:49 PM: Enabling Node.js Corepack
7:55:49 PM: Started restoring cached build plugins
7:55:49 PM: Finished restoring cached build plugins
7:55:49 PM: Started restoring cached corepack dependencies
7:55:49 PM: Finished restoring cached corepack dependencies
7:55:49 PM: No pnpm workspaces detected
7:55:49 PM: Started restoring cached node modules
7:55:49 PM: Finished restoring cached node modules
7:55:49 PM: Installing npm packages using pnpm version 7.25.0
7:55:50 PM: Lockfile is up to date, resolution step is skipped
7:55:50 PM: Progress: resolved 1, reused 0, downloaded 0, added 0
7:55:50 PM: Packages: +1330
7:55:50 PM: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7:55:50 PM: Packages are hard linked from the content-addressable store to the virtual store.
7:55:50 PM:   Content-addressable store is at: /opt/build/.pnpm-store/v3
7:55:50 PM:   Virtual store is at:             node_modules/.pnpm
7:55:51 PM: Progress: resolved 1330, reused 0, downloaded 47, added 43
7:55:52 PM: Progress: resolved 1330, reused 0, downloaded 177, added 171
7:55:53 PM: Progress: resolved 1330, reused 0, downloaded 376, added 368
7:55:54 PM: Progress: resolved 1330, reused 0, downloaded 525, added 525
7:55:55 PM: Progress: resolved 1330, reused 0, downloaded 623, added 623
7:55:56 PM: Progress: resolved 1330, reused 0, downloaded 681, added 681
7:55:57 PM: Progress: resolved 1330, reused 0, downloaded 844, added 846
7:55:58 PM: Progress: resolved 1330, reused 0, downloaded 1030, added 1031
7:55:59 PM: Progress: resolved 1330, reused 0, downloaded 1108, added 1106
7:56:00 PM: Progress: resolved 1330, reused 0, downloaded 1222, added 1220
7:56:01 PM: Progress: resolved 1330, reused 0, downloaded 1323, added 1325
7:56:02 PM: .../core-js@3.32.1/node_modules/core-js postinstall$ node -e "try{require("./postinstall")}catch(e){}"
7:56:02 PM: .../node_modules/isolated-vm install$ prebuild-install || (node-gyp rebuild --release -j 4 && node-gyp clean)
7:56:02 PM: .../core-js@3.32.1/node_modules/core-js postinstall: Done
7:56:02 PM: Progress: resolved 1330, reused 0, downloaded 1328, added 1330, done
7:56:02 PM: .../node_modules/isolated-vm install: prebuild-install warn install /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29" not found (required by /opt/build/repo/node_modules/.pnpm/isolated-vm@4.6.0/node_modules/isolated-vm/out/isolated_vm.node)
.../node_modules/isolated-vm install: gyp info it worked if it ends with ok
7:56:02 PM: .../node_modules/isolated-vm install: gyp info using node-gyp@9.3.1
7:56:02 PM: .../node_modules/isolated-vm install: gyp info using node@18.18.2 | linux | x64
7:56:02 PM: .../node_modules/isolated-vm install: gyp info find Python using Python version 3.8.10 found at "/opt/buildhome/python3.8/bin/python3"
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn /opt/buildhome/python3.8/bin/python3
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args [
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "/opt/buildhome/.cache/node/corepack/pnpm/7.25.0/dist/node_modules/node-gyp/gyp/gyp_main.py",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "binding.gyp",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-f",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "make",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-I",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "/opt/build/repo/node_modules/.pnpm/isolated-vm@4.6.0/node_modules/isolated-vm/build/config.gypi",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-I",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "/opt/buildhome/.cache/node/corepack/pnpm/7.25.0/dist/node_modules/node-gyp/addon.gypi",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-I",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "/opt/buildhome/.cache/node-gyp/18.18.2/include/node/common.gypi",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-Dlibrary=shared_library",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-Dvisibility=default",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-Dnode_root_dir=/opt/buildhome/.cache/node-gyp/18.18.2",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-Dnode_gyp_dir=/opt/buildhome/.cache/node/corepack/pnpm/7.25.0/dist/node_modules/node-gyp",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-Dnode_lib_file=/opt/buildhome/.cache/node-gyp/18.18.2/<(target_arch)/node.lib",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-Dmodule_root_dir=/opt/build/repo/node_modules/.pnpm/isolated-vm@4.6.0/node_modules/isolated-vm",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-Dnode_engine=v8",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "--depth=.",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "--no-parallel",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "--generator-output",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "build",
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args   "-Goutput_dir=."
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args ]
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn make
7:56:02 PM: .../node_modules/isolated-vm install: gyp info spawn args [ "BUILDTYPE=Release", "-C", "build", "--jobs", 4 ]
7:56:02 PM: .../node_modules/isolated-vm install: make: Entering directory "/opt/build/repo/node_modules/.pnpm/isolated-vm@4.6.0/node_modules/isolated-vm/build"
7:56:03 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/nortti/src/external_copy/serializer_nortti.o
7:56:03 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/nortti/src/isolate/allocator_nortti.o
7:56:05 PM: .../node_modules/isolated-vm install: rm -f Release/obj.target/nortti.a Release/obj.target/nortti.a.ar-file-list; mkdir -p `dirname Release/obj.target/nortti.a`
7:56:05 PM: .../node_modules/isolated-vm install: ar crs Release/obj.target/nortti.a @Release/obj.target/nortti.a.ar-file-list
7:56:05 PM: .../node_modules/isolated-vm install:   COPY Release/nortti.a
7:56:05 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/external_copy/external_copy.o
7:56:05 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/external_copy/serializer.o
7:56:05 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/external_copy/string.o
7:56:05 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/isolate/environment.o
7:56:05 PM: .../node_modules/isolated-vm install: ../src/isolate/environment.cc:58: warning: "_GNU_SOURCE" redefined
7:56:05 PM: .../node_modules/isolated-vm install:    58 | #define _GNU_SOURCE
7:56:05 PM: .../node_modules/isolated-vm install:       |
7:56:05 PM: .../node_modules/isolated-vm install: <command-line>: note: this is the location of the previous definition
7:56:06 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/isolate/cpu_profile_manager.o
7:56:06 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/isolate/executor.o
7:56:07 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/isolate/holder.o
7:56:08 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/isolate/inspector.o
7:56:08 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/isolate/platform_delegate.o
7:56:08 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/isolate/scheduler.o
7:56:09 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/isolate/stack_trace.o
7:56:09 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/isolate/three_phase_task.o
7:56:09 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/lib/thread_pool.o
7:56:09 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/lib/timer.o
7:56:10 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/callback.o
7:56:10 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/context_handle.o
7:56:11 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/evaluation.o
7:56:11 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/external_copy_handle.o
7:56:13 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/isolate.o
7:56:14 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/isolate_handle.o
7:56:14 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/lib_handle.o
7:56:15 PM: .../node_modules/isolated-vm install: ../src/module/lib_handle.cc: In member function ‘v8::Local<v8::Value> ivm::LibHandle::PrivateSymbol(v8::MaybeLocal<v8::String>)’:
7:56:15 PM: .../node_modules/isolated-vm install: ../src/module/lib_handle.cc:58:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
7:56:15 PM: .../node_modules/isolated-vm install:    58 |  return *reinterpret_cast<Local<Value>*>(&symbol);
7:56:15 PM: .../node_modules/isolated-vm install:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7:56:15 PM: .../node_modules/isolated-vm install: ../src/module/lib_handle.cc:58:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
7:56:15 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/module_handle.o
7:56:15 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/native_module_handle.o
7:56:16 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/reference_handle.o
7:56:17 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/script_handle.o
7:56:20 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/session_handle.o
7:56:20 PM: .../node_modules/isolated-vm install:   CXX(target) Release/obj.target/isolated_vm/src/module/transferable.o
7:56:24 PM: .../node_modules/isolated-vm install:   SOLINK_MODULE(target) Release/obj.target/isolated_vm.node
7:56:24 PM: .../node_modules/isolated-vm install:   COPY Release/isolated_vm.node
7:56:24 PM: .../node_modules/isolated-vm install:   COPY ../out/isolated_vm.node
7:56:24 PM: .../node_modules/isolated-vm install:   TOUCH Release/obj.target/action_after_build.stamp
7:56:24 PM: .../node_modules/isolated-vm install: make: Leaving directory "/opt/build/repo/node_modules/.pnpm/isolated-vm@4.6.0/node_modules/isolated-vm/build"
7:56:24 PM: .../node_modules/isolated-vm install: gyp info ok
7:56:24 PM: .../node_modules/isolated-vm install: gyp info it worked if it ends with ok
7:56:24 PM: .../node_modules/isolated-vm install: gyp info using node-gyp@9.3.1
7:56:24 PM: .../node_modules/isolated-vm install: gyp info using node@18.18.2 | linux | x64
7:56:24 PM: .../node_modules/isolated-vm install: gyp info ok
7:56:24 PM: .../node_modules/isolated-vm install: Done
7:56:25 PM: .../deasync@0.1.28/node_modules/deasync install$ node ./build.js
7:56:25 PM: .../esbuild@0.16.3/node_modules/esbuild postinstall$ node install.js
7:56:25 PM: .../esbuild@0.17.6/node_modules/esbuild postinstall$ node install.js
7:56:25 PM: .../esbuild@0.18.20/node_modules/esbuild postinstall$ node install.js
7:56:25 PM: .../esbuild@0.14.47/node_modules/esbuild postinstall$ node install.js
7:56:25 PM: .../deasync@0.1.28/node_modules/deasync install: `linux-x64-node-18` exists; testing
7:56:25 PM: .../esbuild@0.16.3/node_modules/esbuild postinstall: Done
7:56:25 PM: .../esbuild@0.18.20/node_modules/esbuild postinstall: Done
7:56:25 PM: .../esbuild@0.17.6/node_modules/esbuild postinstall: Done
7:56:25 PM: .../esbuild@0.14.47/node_modules/esbuild postinstall: Done
7:56:25 PM: .../esbuild@0.19.3/node_modules/esbuild postinstall$ node install.js
7:56:25 PM: .../deasync@0.1.28/node_modules/deasync install: Binary is fine; exiting
7:56:25 PM: .../deasync@0.1.28/node_modules/deasync install: Done
7:56:25 PM: .../esbuild@0.19.3/node_modules/esbuild postinstall: Done
7:56:25 PM: .../sharp@0.32.5/node_modules/sharp install$ (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
7:56:26 PM: .../sharp@0.32.5/node_modules/sharp install: sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.4/libvips-8.14.4-linux-x64.tar.br
7:56:27 PM: .../sharp@0.32.5/node_modules/sharp install: sharp: Integrity check passed for linux-x64
7:56:27 PM: .../sharp@0.32.5/node_modules/sharp install: Done
7:56:27 PM: .../node_modules/vercel preinstall$ node ./scripts/preinstall.js
7:56:27 PM: .../node_modules/vercel preinstall: Done
7:56:28 PM: dependencies:
7:56:28 PM: + @astrojs/markdown-remark 3.2.0
7:56:28 PM: + @astrojs/mdx 1.1.0
7:56:28 PM: + @astrojs/netlify 3.0.1
7:56:28 PM: + @astrojs/react 3.0.2
7:56:28 PM: + @astrojs/solid-js 3.0.1
7:56:28 PM: + @astrojs/tailwind 5.0.0
7:56:28 PM: + @fontsource/brygada-1918 5.0.8
7:56:28 PM: + @fontsource/inter 5.0.8
7:56:28 PM: + @jridgewell/sourcemap-codec 1.4.15
7:56:28 PM: + @mdx-js/mdx 2.2.1
7:56:28 PM: + @npmcli/fs 3.1.0
7:56:28 PM: + @rollup/plugin-inject 5.0.3
7:56:28 PM: + @types/react 18.2.21
7:56:28 PM: + @vercel/og 0.0.21
7:56:28 PM: + astro 3.1.0
7:56:28 PM: + astro-cloudinary-image 0.0.6
7:56:28 PM: + astro-eslint-parser 0.11.0
7:56:28 PM: + caniuse-lite 1.0.30001524
7:56:28 PM: + eslint-plugin-markdown 3.0.1
7:56:28 PM: + estree-util-value-to-estree 2.1.0
7:56:28 PM: + isolated-vm 4.6.0
7:56:28 PM: + littlefoot 4.0.0-10
7:56:28 PM: + photoswipe 5.4.0
7:56:28 PM: + plaiceholder 3.0.0
7:56:28 PM: + plyr 3.7.8
7:56:28 PM: + postcss 8.4.20
7:56:28 PM: + reading-time 1.5.0
7:56:28 PM: + remark-shiki-twoslash 3.1.3
7:56:28 PM: + remark-supersub 1.0.0
7:56:28 PM: + sharp 0.32.5
7:56:28 PM: + solid-js 1.7.11
7:56:28 PM: + tailwindcss 3.3.3
7:56:28 PM: + tippy.js 6.3.7
7:56:28 PM: + unified 10.1.2
7:56:28 PM: + unist-util-visit 4.1.2
7:56:28 PM: + vercel 28.20.0
7:56:28 PM: + yargs-parser 21.1.1
7:56:28 PM: devDependencies:
7:56:28 PM: + @astrojs/rss 3.0.0
7:56:28 PM: + @edgeandnode/eslint-config 1.3.5
7:56:28 PM: + @types/hast 2.3.4
7:56:28 PM: + @types/node 18.11.18
7:56:28 PM: + accessible-astro-components 2.1.3
7:56:28 PM: + autoprefixer 10.4.15
7:56:28 PM: + cssnano 6.0.1
7:56:28 PM: + eslint 8.48.0
7:56:28 PM: + prettier 3.0.3
7:56:28 PM: + prettier-plugin-astro 0.7.2
7:56:28 PM: + prettier-plugin-tailwindcss 0.2.8
7:56:28 PM: + typescript 4.9.5
7:56:28 PM: Done in 38s
7:56:28 PM: npm packages installed using pnpm
7:56:28 PM: Install dependencies script success
7:56:28 PM: Starting build script
7:56:29 PM: Detected 2 framework(s)
7:56:29 PM: "astro" at version "3.1.0"
7:56:29 PM: "solid-js" at version "1.7.11"
7:56:29 PM: Section completed: initializing
7:56:31 PM: ​
7:56:31 PM: Netlify Build                                                 
7:56:31 PM: ────────────────────────────────────────────────────────────────
7:56:31 PM: ​
7:56:31 PM: ❯ Version
7:56:31 PM:   @netlify/build 29.23.4
7:56:31 PM: ​
7:56:31 PM: ❯ Flags
7:56:31 PM:   baseRelDir: true
7:56:31 PM:   buildId: 65356205ccdfc80008aa19b0
7:56:31 PM:   deployId: 65356205ccdfc80008aa19b2
7:56:31 PM: ​
7:56:31 PM: ❯ Current directory
7:56:31 PM:   /opt/build/repo
7:56:31 PM: ​
7:56:31 PM: ❯ Config file
7:56:31 PM:   No config file was defined: using default values.
7:56:31 PM: ​
7:56:31 PM: ❯ Context
7:56:31 PM:   production
7:56:31 PM: ​
7:56:31 PM: ❯ Installing plugins
7:56:31 PM:    - @netlify/plugin-lighthouse@5.0.0
7:56:41 PM: ​
7:56:41 PM: ❯ Loading plugins
7:56:41 PM:    - @netlify/plugin-lighthouse@5.0.0 from Netlify app
7:56:42 PM: ​
7:56:42 PM: Build command from Netlify app                                
7:56:42 PM: ────────────────────────────────────────────────────────────────
7:56:42 PM: ​
7:56:42 PM: $ astro build
7:56:44 PM: 05:56:44 PM [content] No content directory found. Skipping type generation.
7:56:44 PM: 05:56:44 PM [build] output target: static
7:56:44 PM: 05:56:44 PM [build] Collecting build info...
7:56:44 PM: 05:56:44 PM [build] Completed in 123ms.
7:56:44 PM: 05:56:44 PM [build] Building static entrypoints...
7:56:45 PM: warn - You have enabled experimental features: optimizeUniversalDefaults
7:56:45 PM: warn - Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time.
7:56:45 PM: [vite]: Rollup failed to resolve import "@fontsource/inter/files/inter-latin-variable-wghtOnly-normal.woff2" from "/opt/build/repo/src/layouts/BaseLayout.astro".
7:56:45 PM: This is most likely unintended because it can break your application at runtime.
7:56:45 PM: If you do want to externalize this module explicitly add it to
7:56:45 PM: `build.rollupOptions.external`
7:56:46 PM: @fontsource-variable/brygada-1918/files/brygada-1918-latin-wght-normal.woff2 referenced in /opt/build/repo/src/global-styles/font.css didn"t resolve at build time, it will remain unchanged to be resolved at runtime
7:56:46 PM: @fontsource-variable/brygada-1918/files/brygada-1918-latin-wght-italic.woff2 referenced in /opt/build/repo/src/global-styles/font.css didn"t resolve at build time, it will remain unchanged to be resolved at runtime
7:56:47 PM: Failed during stage "building site": Build script returned non-zero exit code: 2
7:56:47 PM: @fontsource-variable/inter/files/inter-latin-wght-normal.woff2 referenced in /opt/build/repo/src/global-styles/font.css didn"t resolve at build time, it will remain unchanged to be resolved at runtime
 error   [vite]: Rollup failed to resolve import "@fontsource/inter/files/inter-latin-variable-wghtOnly-normal.woff2" from "/opt/build/repo/src/layouts/BaseLayout.astro".
7:56:47 PM:   This is most likely unintended because it can break your application at runtime.
7:56:47 PM:   If you do want to externalize this module explicitly add it to
7:56:47 PM:   `build.rollupOptions.external`
7:56:47 PM: Error: [vite]: Rollup failed to resolve import "@fontsource/inter/files/inter-latin-variable-wghtOnly-normal.woff2" from "/opt/build/repo/src/layouts/BaseLayout.astro".
7:56:47 PM: This is most likely unintended because it can break your application at runtime.
7:56:47 PM: If you do want to externalize this module explicitly add it to
7:56:47 PM: `build.rollupOptions.external`
7:56:47 PM:     at viteWarn (file:///opt/build/repo/node_modules/.pnpm/vite@4.4.9(@types+node@18.11.18)/node_modules/vite/dist/node/chunks/dep-df561101.js:48142:27)
7:56:47 PM:     at onRollupWarning (file:///opt/build/repo/node_modules/.pnpm/vite@4.4.9(@types+node@18.11.18)/node_modules/vite/dist/node/chunks/dep-df561101.js:48174:9)
7:56:47 PM:     at onwarn (file:///opt/build/repo/node_modules/.pnpm/vite@4.4.9(@types+node@18.11.18)/node_modules/vite/dist/node/chunks/dep-df561101.js:47902:13)
7:56:47 PM:     at file:///opt/build/repo/node_modules/.pnpm/rollup@3.28.1/node_modules/rollup/dist/es/shared/node-entry.js:24194:13
7:56:47 PM:     at Object.logger [as onLog] (file:///opt/build/repo/node_modules/.pnpm/rollup@3.28.1/node_modules/rollup/dist/es/shared/node-entry.js:25867:9)
7:56:47 PM:     at ModuleLoader.handleInvalidResolvedId (file:///opt/build/repo/node_modules/.pnpm/rollup@3.28.1/node_modules/rollup/dist/es/shared/node-entry.js:24780:26)
7:56:47 PM:     at file:///opt/build/repo/node_modules/.pnpm/rollup@3.28.1/node_modules/rollup/dist/es/shared/node-entry.js:24740:26
7:56:47 PM: ​
7:56:47 PM: "build.command" failed                                        
7:56:47 PM: ────────────────────────────────────────────────────────────────
7:56:47 PM: ​
7:56:47 PM:   Error message
7:56:47 PM:   Command failed with exit code 1: astro build (https://ntl.fyi/exit-code-1)
7:56:47 PM: ​
7:56:47 PM:   Error location
7:56:47 PM:   In Build command from Netlify app:
7:56:47 PM:   astro build
7:56:47 PM: ​
7:56:47 PM:   Resolved config
7:56:47 PM:   build:
7:56:47 PM:     command: astro build
7:56:47 PM:     commandOrigin: ui
7:56:47 PM:     publish: /opt/build/repo/dist
7:56:47 PM:     publishOrigin: ui
7:56:47 PM:   plugins:
7:56:47 PM:     - inputs: {}
7:56:47 PM:       origin: ui
7:56:47 PM:       package: "@netlify/plugin-lighthouse"
7:56:47 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
7:56:47 PM: Failing build: Failed to build site
7:56:48 PM: Finished processing build request in 1m3.981s

Hi :wave:t6: welcome to the forums! Can you try changing your build command to npm run build? Also if you can give this documentation a read that would help and sharing your repository?

Thanks so much!

Sorry for the late reply on this. Will try it and report back, and this is the repo.

Tried npm build without success.

I’d ask you to remove pnpm completely from your repo and use npm for this. Based on the paths in the error, it’s likely that PNPM could be installing modules in a different way than Vite expects to resolve.

Hi, I removed pnpm and used npm.
But also downgraded to Astro 2.10 as there were other issues I couldn’t fix.
Thank you for the support. I will revisit the upgrade in the future.

Astro docs warn about this specifically

  1. Images 🚀 Astro Documentation
  2. Could not find Sharp. 🚀 Astro Documentation

When using a strict package manager like pnpm , you may need to manually install Sharp into your project even though it is an Astro dependency:

1 Like