Cannot deploy site due to hdr files

PLEASE help us help you by writing a good post!

  • We need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app
  • DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
  • Build problems? Link or paste the FULL build log & build settings screenshot
  • Did you try Ask Netlify, our generative AI chatbot, before posting? It pulls info from Support Guides and recent solved forums posts.

The better the post - the faster the answer.

Hello! I am new to Netlify and my website’s name is mmmemory-game.netlify.app. I am currently having trouble deploying it, because it always seems to stop whenever it gets to the hdr files, which I absolutely need for my project’s 3D portion. I got them from Polyhaven and am not sure how to get links for the hdrs instead of downloading the files. I made sure the hdr files were each under 10 MB to ensure the site could handle the deploy. I asked the AI chatbot, but it did not help much.

Here is a screenshot of what happens:

8:39:23 AM: Waiting for other deploys from your team to complete. Check the queue: https://app.netlify.com/teams/mirker21/builds
8:40:28 AM: build-image version: fcb0c1b3ada6d25c1cb58e8bc514f5f23cc14f15 (focal)
8:40:28 AM: buildbot version: a1efe55811e06b820bc74e0d2ed0cf053cd737a1
8:40:28 AM: Fetching cached dependencies
8:40:28 AM: Failed to fetch cache, continuing with build
8:40:28 AM: Starting to prepare the repo for build
8:40:29 AM: No cached dependencies found. Cloning fresh repo
8:40:29 AM: git clone --filter=blob:none https://github.com/mirker21/Memory_Game
8:40:29 AM: Preparing Git Reference refs/heads/main
8:40:33 AM: Starting to install dependencies
8:40:33 AM: Python version set to 3.8
8:40:33 AM: Attempting Ruby version 2.7.2, read from environment
8:40:34 AM: Using Ruby version 2.7.2
8:40:34 AM: Started restoring cached go cache
8:40:34 AM: Finished restoring cached go cache
8:40:35 AM: go version go1.19.13 linux/amd64
8:40:36 AM: Using PHP version 8.0
8:40:37 AM: Downloading and installing node v18.19.1...
8:40:37 AM: Downloading https://nodejs.org/dist/v18.19.1/node-v18.19.1-linux-x64.tar.xz...
8:40:38 AM: Computing checksum with sha256sum
8:40:38 AM: Checksums matched!
8:40:40 AM: Now using node v18.19.1 (npm v10.2.4)
8:40:40 AM: Enabling Node.js Corepack
8:40:40 AM: Started restoring cached build plugins
8:40:40 AM: Finished restoring cached build plugins
8:40:40 AM: Started restoring cached corepack dependencies
8:40:40 AM: Finished restoring cached corepack dependencies
8:40:40 AM: No npm workspaces detected
8:40:40 AM: Started restoring cached node modules
8:40:40 AM: Finished restoring cached node modules
8:40:40 AM: Installing npm packages using npm version 10.2.4
8:40:45 AM: added 328 packages, and audited 329 packages in 5s
8:40:45 AM: 102 packages are looking for funding
8:40:45 AM:   run `npm fund` for details
8:40:45 AM: 5 vulnerabilities (1 moderate, 3 high, 1 critical)
8:40:45 AM: To address all issues, run:
8:40:45 AM:   npm audit fix
8:40:45 AM: Run `npm audit` for details.
8:40:45 AM: npm packages installed
8:40:46 AM: Successfully installed dependencies
8:40:46 AM: Starting build script
8:40:47 AM: Detected 1 framework(s)
8:40:47 AM: "vite" at version "4.4.9"
8:40:47 AM: Section completed: initializing
8:40:48 AM: ​
8:40:48 AM: Netlify Build                                                 
8:40:48 AM: ────────────────────────────────────────────────────────────────
8:40:48 AM: ​
8:40:48 AM: ❯ Version
8:40:48 AM:   @netlify/build 29.36.0
8:40:48 AM: ​
8:40:48 AM: ❯ Flags
8:40:48 AM:   baseRelDir: true
8:40:48 AM:   buildId: 65d4c7ab927c9bfaca222a5a
8:40:48 AM:   deployId: 65d4c7ab927c9bfaca222a5c
8:40:48 AM: ​
8:40:48 AM: ❯ Current directory
8:40:48 AM:   /opt/build/repo
8:40:48 AM: ​
8:40:48 AM: ❯ Config file
8:40:48 AM:   No config file was defined: using default values.
8:40:48 AM: ​
8:40:48 AM: ❯ Context
8:40:48 AM:   production
8:40:48 AM: ​
8:40:48 AM: Build command from Netlify app                                
8:40:48 AM: ────────────────────────────────────────────────────────────────
8:40:48 AM: ​
8:40:48 AM: $ npm run build
8:40:49 AM: > memory_game@0.0.0 build
8:40:49 AM: > vite build
8:40:49 AM: vite v4.4.9 building for production...
8:40:49 AM: transforming...
8:40:51 AM: ✓ 85 modules transformed.
8:40:51 AM: ✓ built in 2.59s
8:40:51 AM: [vite:build-import-analysis] Parse error @:8:1543
8:40:51 AM: file: /opt/build/repo/public/presets_library/background_presets/georgentor_2k.hdr:8:1542
8:40:51 AM:  6:
8:40:51 AM:  7: -Y 1024 +X 2048
8:40:51 AM:  8: 
8:40:51 AM: �˚���ʕ���Ʉ������Ʉ��������������ɕ���ʏɉȊnjƏ���ńĈńƄǃȄɄ�,�������������������������������������������څۄ�$�������������������������������������������������������������������������������������������������������������������������������������������������������������+������������������������������������������ԄӃ҄������τ΄͆̇ˇʈɋȌǐƌŕčŤ����Ǒ��șɏʃ����������̠��������������������������������������������������������#��������������������������������������†ÇćňƛǕƆ�Ƅŏƥǎȧɭ��ǼǴȣǴƆʼn���Ʈ����ġĵÌċØĂŋĜŘ���ƇNJƂǕƧśļ��àĖņąËŠ���"�������������������������������������������������������������������������������������������������������������c�d�de�d�c�babbb�aba�b�c�d�e�f�g�h�i�j�k�l�m�n�o�p�q�r�stttuuuvvvwwxxxyyyzzz{{{|||�}�~������������������������������܃�����ƒ����������ԁ����~�}�|�{�z�y�z�y�z�{�z�yx�y�x�wxxww�x�w�x�y�x�w�v�utttsssrrrqqpppooonnn�m�l�k�j�i�h�g�f�e�d�c�b�a�`aa```aaa�`a`a�`�a�b�c�����������������������������������������������������������:���������������������������������������������������������������������������������������b�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������߇��������������������������������������������������������������������������������Q����������������������������������������������������������������������������������������������������������������������������������������������������
���������...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
8:40:51 AM:  9: ������������>����������������������������������������������������������������,����������������������������������������������������������������
8:40:51 AM: �����������������������������������������������
8:40:51 AM: 10: ����������������������������������߆މ݆܈����܊ۇܕۄ������؈׈ք�����Ӆ҃цЃω�͐΃̈́̐���ˊ̆˄ʄɃȕǃȆDŽƄŐĄņƄLjȂLj������NjȅljƛņƉDžȈɋʎ�ʍ������������Њ�Ғщ҈ӈԇՂֈ�ֆ��������������ۄ܄�
8:40:51 AM: error during build:
8:40:51 AM: Error: Parse error @:8:1543
8:40:51 AM:     at parse$e (file:///opt/build/repo/node_modules/vite/dist/node/chunks/dep-df561101.js:16472:355)
8:40:51 AM:     at Object.transform (file:///opt/build/repo/node_modules/vite/dist/node/chunks/dep-df561101.js:46579:27)
8:40:51 AM: ​
8:40:51 AM: "build.command" failed                                        
8:40:51 AM: ────────────────────────────────────────────────────────────────
8:40:51 AM: ​
8:40:51 AM:   Error message
8:40:51 AM:   Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
8:40:51 AM: ​
8:40:51 AM:   Error location
8:40:51 AM:   In Build command from Netlify app:
8:40:51 AM:   npm run build
8:40:51 AM: ​
8:40:51 AM:   Resolved config
8:40:51 AM:   build:
8:40:51 AM:     command: npm run build
8:40:51 AM:     commandOrigin: ui
8:40:51 AM:     publish: /opt/build/repo/dist
8:40:51 AM:     publishOrigin: ui
8:40:52 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:40:52 AM: Failing build: Failed to build site
8:40:52 AM: Finished processing build request in 23.893s
8:40:52 AM: Failed during stage "building site": Build script returned non-zero exit code: 2

What could I do to fix this issue? Thank you.

If you build this locally using npm run build does the build succeed or fail?