Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collecting page data ..ReferenceError during build #580

Closed
kkoenen opened this issue Oct 28, 2023 · 1 comment
Closed

Collecting page data ..ReferenceError during build #580

kkoenen opened this issue Oct 28, 2023 · 1 comment

Comments

@kkoenen
Copy link

kkoenen commented Oct 28, 2023

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

  • Version of ThunderHub: v0.13.23
  • Deployment method: npm install
  • Other relevant environment details: npm 10.2.0, nodejs 21.1.0

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

Expected behavior
Clean build, ready to start.

Actual behavior
Error during build.

@kkoenen
Copy link
Author

kkoenen commented Oct 29, 2023

with

node v16.20.2
npm v8.19.4

it builds and runs (...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant