10:37:08 PM: Netlify Build
10:37:08 PM: ────────────────────────────────────────────────────────────────
10:37:08 PM:
10:37:08 PM: ❯ Version
10:37:08 PM: @netlify/build 29.11.7
10:37:08 PM:
10:37:08 PM: ❯ Flags
10:37:08 PM: baseRelDir: true
10:37:08 PM: buildId: 647d3c2165687c10886b27ce
10:37:08 PM: deployId: 647d3c2165687c10886b27d0
10:37:08 PM:
10:37:08 PM: ❯ Current directory
10:37:08 PM: /opt/build/repo
10:37:08 PM:
10:37:08 PM: ❯ Config file
10:37:08 PM: No config file was defined: using default values.
10:37:08 PM:
10:37:08 PM: ❯ Context
10:37:08 PM: production
10:37:08 PM:
10:37:08 PM: Build command from Netlify app
10:37:08 PM: ────────────────────────────────────────────────────────────────
10:37:08 PM:
10:37:08 PM: $ CI= npm run build
10:37:08 PM: > curriculo@0.1.0 build
10:37:08 PM: > react-scripts build
10:37:09 PM: Creating an optimized production build…
10:37:11 PM: Failed to compile.
10:37:11 PM:
10:37:11 PM: Module not found: Error: Can’t resolve ‘./Languages’ in ‘/opt/build/repo/src/Components/Skills’
10:37:11 PM:
10:37:11 PM: “build.command” failed
10:37:11 PM: ────────────────────────────────────────────────────────────────
10:37:11 PM:
10:37:11 PM: Error message
10:37:11 PM: Command failed with exit code 1: CI= npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
10:37:11 PM:
10:37:11 PM: Error location
10:37:11 PM: In Build command from Netlify app:
10:37:11 PM: CI= npm run build
10:37:11 PM:
10:37:11 PM: Resolved config
10:37:11 PM: build:
10:37:11 PM: command: CI= npm run build
10:37:11 PM: commandOrigin: ui
10:37:11 PM: publish: /opt/build/repo/build
10:37:11 PM: publishOrigin: ui
10:37:13 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:37:13 PM: Failing build: Failed to build site
10:37:13 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)
10:37:13 PM: Finished processing build request in 35.596s
Your build is failing because of this:
In your /src/Components/Skills
file, something is trying to load ./Languages
and it can’t be found.
Check the file, ensure it exists, and that the path to it is correct.
1 Like
everything was fine, incredible as it seems, but I think it was because I renamed the file, I had changed it in the import too and it was ok in the local host, but now I deleted and rewrote the import and it worked, thank you very much!
glad it’s working for you now!
1 Like