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

Unable To Run Site Locally #748

Open
bensternthal opened this issue Dec 6, 2024 · 0 comments
Open

Unable To Run Site Locally #748

bensternthal opened this issue Dec 6, 2024 · 0 comments

Comments

@bensternthal
Copy link
Contributor

On a fresh install, running the site locally via npm run dev results in the following error when I view a page in a browser:

[Browsersync] Serving files from: dist
Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the client
    at ServerResponse.writeHead (node:_http_server:345:11)
    at res.writeHead (/Users/ben/Documents/Dev/ceph.io/node_modules/resp-modifier/index.js:140:27)
    at /Users/ben/Documents/Dev/ceph.io/.eleventy.js:139:15
    at call (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:239:7)
    at next (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:183:5)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/serve-static/index.js:121:7)
    at SendStream.emit (node:events:519:28)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:270:17)
    at SendStream.onStatError (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:421:12)
    at next (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:764:28)
Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the client
    at ServerResponse.writeHead (node:_http_server:345:11)
    at /Users/ben/Documents/Dev/ceph.io/.eleventy.js:139:15
    at call (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:239:7)
    at next (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:183:5)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/serve-static/index.js:121:7)
    at SendStream.emit (node:events:519:28)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:270:17)
    at SendStream.onStatError (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:421:12)
    at onstat (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:727:26)
    at FSReqCallback.oncomplete (node:fs:197:21)
Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the client
    at ServerResponse.writeHead (node:_http_server:345:11)
    at /Users/ben/Documents/Dev/ceph.io/.eleventy.js:139:15
    at call (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:239:7)
    at next (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:183:5)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/serve-static/index.js:121:7)
    at SendStream.emit (node:events:519:28)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:270:17)
    at SendStream.onStatError (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:421:12)
    at onstat (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:727:26)
    at FSReqCallback.oncomplete (node:fs:197:21)
Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the client
    at ServerResponse.writeHead (node:_http_server:345:11)
    at /Users/ben/Documents/Dev/ceph.io/.eleventy.js:139:15
    at call (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:239:7)
    at next (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:183:5)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/serve-static/index.js:121:7)
    at SendStream.emit (node:events:519:28)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:270:17)
    at SendStream.onStatError (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:421:12)
    at onstat (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:727:26)
    at FSReqCallback.oncomplete (node:fs:197:21)
Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the client
    at ServerResponse.writeHead (node:_http_server:345:11)
    at /Users/ben/Documents/Dev/ceph.io/.eleventy.js:139:15
    at call (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:239:7)
    at next (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:183:5)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/serve-static/index.js:121:7)
    at SendStream.emit (node:events:519:28)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:270:17)
    at SendStream.onStatError (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:421:12)
    at onstat (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:727:26)
    at FSReqCallback.oncomplete (node:fs:197:21)
Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the client
    at ServerResponse.writeHead (node:_http_server:345:11)
    at /Users/ben/Documents/Dev/ceph.io/.eleventy.js:139:15
    at call (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:239:7)
    at next (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:183:5)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/serve-static/index.js:121:7)
    at SendStream.emit (node:events:519:28)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:270:17)
    at SendStream.onStatError (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:421:12)
    at onstat (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:727:26)
    at FSReqCallback.oncomplete (node:fs:197:21)
Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the client
    at ServerResponse.writeHead (node:_http_server:345:11)
    at /Users/ben/Documents/Dev/ceph.io/.eleventy.js:139:15
    at call (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:239:7)
    at next (/Users/ben/Documents/Dev/ceph.io/node_modules/connect/index.js:183:5)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/serve-static/index.js:121:7)
    at SendStream.emit (node:events:519:28)
    at SendStream.error (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:270:17)
    at SendStream.onStatError (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:421:12)
    at onstat (/Users/ben/Documents/Dev/ceph.io/node_modules/send/index.js:727:26)
    at FSReqCallback.oncomplete (node:fs:197:21)
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