How to solve this error

8:53:00 PM: See Page Without Valid React Component | Next.js for more info.
8:53:00 PM: ​
8:53:00 PM: “build.command” failed
8:53:00 PM: ────────────────────────────────────────────────────────────────
8:53:00 PM: ​
8:53:00 PM: Error message
8:53:00 PM: Command failed with exit code 1: CI= npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
8:53:00 PM: ​
8:53:00 PM: Error location
8:53:00 PM: In Build command from Netlify app:
8:53:00 PM: CI= npm run build
8:53:00 PM: ​
8:53:00 PM: Resolved config
8:53:00 PM: build:
8:53:00 PM: command: CI= npm run build
8:53:00 PM: commandOrigin: ui
8:53:00 PM: environment:
8:53:00 PM: - CI
8:53:00 PM: - NEXT_PRIVATE_TARGET
8:53:00 PM: publish: /opt/build/repo/.next
8:53:00 PM: publishOrigin: ui
8:53:00 PM: plugins:
8:53:00 PM: - inputs: {}
8:53:00 PM: origin: ui
8:53:00 PM: package: “@netlify/plugin-nextjs”
8:53:01 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:53:01 PM: Failing build: Failed to build site
8:53:02 PM: Finished processing build request in 1m3.511s
8:53:01 PM: Failed during stage “building site”: Build script returned non-zero exit code: 2

Hi @monojkumar , thanks for the post.

Based on the quoted error above kindly visit the link stated on how to resolve the error.

Thanks.