DustinBrett/daedalOS

Build not working

GFerreiroS opened this issue · 1 comments

Hi, I wanted to try this in my server and I have the same issue building the project. This error shows eithei in docker build or with yarn build.

OS: Debian 12

yarn build  
yarn run v1.22.19
$ yarn build:prebuild && next build
$ node scripts/robots.js && node scripts/searchIndex.js && node scripts/preloadIcons.js && yarn build:fs
node:internal/fs/utils:351
    throw err;
    ^

Error: ENOENT: no such file or directory, open 'public/.index/search.lunr.json'
    at Object.openSync (node:fs:602:3)
    at writeFileSync (node:fs:2334:35)
    at Object.<anonymous> (/root/daedalOS/scripts/searchIndex.js:70:1)
    at Module._compile (node:internal/modules/cjs/loader:1233:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47 {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: 'public/.index/search.lunr.json'
}

Node.js v20.5.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Thanks for pointing this out. I didn't have code to make the .index folder if it didn't exist. I am not sure if it worked until recently as I had changed the build command when I moved to Next 14. I have added code to make the folder if its missing.

9f3241c