When I try to deploy a website I created from a GitHub repo created in react. Its throwing an error saying its failing to import the App.css file because its outside the src directory but its not. I am also not importing App.css anywhere on in my project files. Linked below is my GitHub repo and the build logs from the attempted deploy
rad-seahorse-b8e4b7.netlify.app
9:08:33 PM: build-image version: 3d3c7e8b4321e2c1a54a2c4584fb46ba742b1630 (focal)
9:08:33 PM: buildbot version: 588d3e99baf403f31620480ed78c765f2e21ff1d
9:08:33 PM: Fetching cached dependencies
9:08:33 PM: Failed to fetch cache, continuing with build
9:08:33 PM: Starting to prepare the repo for build
9:08:33 PM: No cached dependencies found. Cloning fresh repo
9:08:33 PM: git clone --filter=blob:none GitHub - tripleDcode/cv-2
9:08:34 PM: Preparing Git Reference refs/heads/main
9:08:42 PM: Starting to install dependencies
9:08:42 PM: Python version set to 3.8
9:08:42 PM: Attempting Ruby version 2.7.2, read from environment
9:08:43 PM: Using Ruby version 2.7.2
9:08:43 PM: Started restoring cached go cache
9:08:43 PM: Finished restoring cached go cache
9:08:45 PM: go version go1.19.13 linux/amd64
9:08:46 PM: Using PHP version 8.0
9:08:47 PM: Downloading and installing node v20.14.0…
9:08:47 PM: Downloading https://nodejs.org/dist/v20.14.0/node-v20.14.0-linux-x64.tar.xz…
9:08:48 PM: Computing checksum with sha256sum
9:08:48 PM: Checksums matched!
9:08:50 PM: Now using node v20.14.0 (npm v10.7.0)
9:08:50 PM: Enabling Node.js Corepack
9:08:50 PM: Started restoring cached build plugins
9:08:50 PM: Finished restoring cached build plugins
9:08:50 PM: Started restoring cached corepack dependencies
9:08:50 PM: Finished restoring cached corepack dependencies
9:08:50 PM: No npm workspaces detected
9:08:50 PM: Started restoring cached node modules
9:08:51 PM: Finished restoring cached node modules
9:08:51 PM: Installing npm packages using npm version 10.7.0
9:08:54 PM: npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
9:08:54 PM: npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
9:08:54 PM: npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
9:08:55 PM: npm warn deprecated w3c-hr-time@1.0.2: Use your platform’s native performance.now() and performance.timeOrigin.
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: Array.prototype.sort() - JavaScript | MDN
9:09:01 PM: added 1558 packages, and audited 1559 packages in 10s
9:09:01 PM: 262 packages are looking for funding
9:09:01 PM: runnpm fund
for details
9:09:01 PM: 8 vulnerabilities (2 moderate, 6 high)
9:09:01 PM: To address all issues (including breaking changes), run:
9:09:01 PM: npm audit fix --force
9:09:01 PM: Runnpm audit
for details.
9:09:01 PM: npm packages installed
9:09:02 PM: Successfully installed dependencies
9:09:02 PM: Starting build script
9:09:03 PM: Detected 1 framework(s)
9:09:03 PM: “create-react-app” at version “5.0.1”
9:09:03 PM: Section completed: initializing
9:09:05 PM:
9:09:05 PM: Netlify Build
9:09:05 PM: ────────────────────────────────────────────────────────────────
9:09:05 PM:
9:09:05 PM: ❯ Version
9:09:05 PM: netlify/build 29.41.3
9:09:05 PM:
9:09:05 PM: ❯ Flags
9:09:05 PM: baseRelDir: true
9:09:05 PM: buildId: 665639b436d4c10008149e96
9:09:05 PM: deployId: 665639b436d4c10008149e98
9:09:05 PM:
9:09:05 PM: ❯ Current directory
9:09:05 PM: /opt/build/repo
9:09:05 PM:
9:09:05 PM: ❯ Config file
9:09:05 PM: No config file was defined: using default values.
9:09:05 PM:
9:09:05 PM: ❯ Context
9:09:05 PM: production
9:09:05 PM:
9:09:05 PM: Build command from Netlify app
9:09:05 PM: ────────────────────────────────────────────────────────────────
9:09:05 PM:
9:09:05 PM: $ npm run build
9:09:05 PM: > cv-2@0.1.0 build
9:09:05 PM: > react-scripts build
9:09:06 PM: Creating an optimized production build…
9:09:07 PM: Failed to compile.
9:09:07 PM:
9:09:07 PM: Module not found: Error: You attempted to import /Users/dandavies/Documents/Projects/cv-2/src/App.css which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
9:09:07 PM: You can either move it inside src/, or add a symlink to it from project’s node_modules/.
9:09:07 PM:
9:09:07 PM: “build.command” failed
9:09:07 PM: ────────────────────────────────────────────────────────────────
9:09:07 PM:
9:09:07 PM: Error message
9:09:07 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
9:09:07 PM:
9:09:07 PM: Error location
9:09:07 PM: In Build command from Netlify app:
9:09:07 PM: npm run build
9:09:07 PM:
9:09:07 PM: Resolved config
9:09:07 PM: build:
9:09:07 PM: command: npm run build
9:09:07 PM: commandOrigin: ui
9:09:07 PM: publish: /opt/build/repo/build
9:09:07 PM: publishOrigin: ui
9:09:08 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:09:08 PM: Failing build: Failed to build site
9:09:08 PM: Finished processing build request in 35.083s
9:09:08 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)