apotdevin / thunderhub

ThunderHub LND Lightning Node Manager in your Browser
https://www.thunderhub.io/
MIT License
412 stars 84 forks source link

Collecting page data ..ReferenceError during build #580

Closed kkoenen closed 3 months ago

kkoenen commented 10 months ago

Describe the problem/bug Build exits with error. After running npm run build on v0.13.23:

 ✓ Creating an optimized production build    
 ✓ Compiled successfully
   Collecting page data  ..ReferenceError: window is not defined
    at /home/*****/thunderhub/src/client/.next/server/chunks/1010.js:14:70826
    at 75015 (/home/*****/thunderhub/src/client/.next/server/chunks/1010.js:14:71234)
    at __webpack_require__ (/home/*****/thunderhub/src/client/.next/server/webpack-runtime.js:1:145)
    at 79577 (/home/*****/thunderhub/src/client/.next/server/chunks/1010.js:1:426143)
    at __webpack_require__ (/home/*****/thunderhub/src/client/.next/server/webpack-runtime.js:1:145)
    at 20175 (/home/*****/thunderhub/src/client/.next/server/chunks/1010.js:1:327766)
    at __webpack_require__ (/home/*****/thunderhub/src/client/.next/server/webpack-runtime.js:1:145)
    at 83654 (/home/*****/thunderhub/src/client/.next/server/chunks/1010.js:1:337077)
    at __webpack_require__ (/home/*****/thunderhub/src/client/.next/server/webpack-runtime.js:1:145)
    at 99357 (/home/*****/thunderhub/src/client/.next/server/chunks/1010.js:1:357338)

> Build error occurred
Error: Failed to collect page data for /
    at /home/*****/thunderhub/node_modules/next/dist/build/utils.js:1171:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: 'Error'
}

Your environment

To Reproduce Steps to reproduce the behavior: Follow installation guide.

Expected behavior Clean build, ready to start.

Actual behavior Error during build.

kkoenen commented 10 months ago

with

node v16.20.2 npm v8.19.4

it builds and runs (...)