Closed AlanaRm-rf-me closed 1 month ago
Updated .prettierrc file:
.prettierrc
{ "tabWidth": 2, "useTabs": false, "endOfLine": "lf" }
Added .editorconfig file:
.editorconfig
root = true [*] end_of_line = lf insert_final_newline = true
Verified package.json contents:
package.json
{ "name": "website", "version": "0.1.0", "private": true, "scripts": { "## DOCKER ##": "", "website": "docker compose --file docker-compose.website.yml --project-name website up -d --force-recreate --build website", "logs": "docker container logs website -f -n 100", "lint": "next lint", "## LOCAL/CODESPACE ##": "", "dev": "NODE_OPTIONS='--inspect' next dev", "start": "next start", "build": "next build" }, // ... rest of the file
Addressed Prettier errors related to line endings:
Attempted to resolve "Missing script: "build"" error:
build
npm cache clean --force rm -rf node_modules package-lock.json npm install
Addressed "ENOENT: no such file or directory, open 'D:\web.next\BUILD_ID'" error:
.next
rm -rf .next npm run build
BUILD_ID
.drone.yml
Verify that package.json changes are saved and recognized by npm:
npm run
Investigate why npm is not recognizing the build script:
npm install
"engines": { "node": "v21.4.0", "npm": "10.2.4" }
Debug the Next.js build process:
npm run build
If issues persist, consider:
Fix the YAML syntax error in .drone.yml:
trigger
y.
... fixing drastic errors, my workflow seemingly from another project decided to peek into this
Updated
.prettierrc
file:Added
.editorconfig
file:Verified
package.json
contents:Troubleshooting Steps
Addressed Prettier errors related to line endings:
.prettierrc
to use LF line endings..editorconfig
to enforce LF line endings.Attempted to resolve "Missing script: "build"" error:
package.json
contains the correctbuild
script.Addressed "ENOENT: no such file or directory, open 'D:\web.next\BUILD_ID'" error:
.next
directory and rebuilding:Current Status
build
script is present inpackage.json
, but npm is not recognizing it for an unknown reason.BUILD_ID
file..drone.yml
file, unrelated to the main build issues.Next Steps to verify... as it works on my machine (tm)
Verify that
package.json
changes are saved and recognized by npm:npm run
to list available scripts.Investigate why npm is not recognizing the
build
script:npm install
.package.json
:Debug the Next.js build process:
npm run build
and capture the full output.If issues persist, consider:
Fix the YAML syntax error in
.drone.yml
:trigger
sections.y.