---
title: "Posts — Page 5 - Benjamin"
description: "A curious software engineer based in Skopje, North Macedonia, solving engineering problems, building products people use, and sharing what I learn along the way. Page 5 of 11."
url: "/page/5"
canonical_url: "https://bfzli.com/page/5"
source_url: "https://bfzli.com/page/5.md"
type: "prose"
updated: "2026-11-06"
---

> Markdown copy of https://bfzli.com/page/5. Append `.md` to any page path on bfzli.com for its markdown twin. Full index: https://bfzli.com/llms.txt

# Posts — page 5 of 11

- [SvelteKit Tests Throw ReferenceError: window is not defined in JSDOM](https://bfzli.com/sveltekit-tests-throw-referenceerror-window-is-not-defined-in-jsdom.md) — Why browser globals are missing in SvelteKit tests and how to run server-only code under a DOM-aware test environment.
- [Dockerfile Builds a Next.js App, Then Node Crashes with "ERR_OSSL_EVP_UNSUPPORTED"](https://bfzli.com/dockerfile-builds-a-next-js-app-then-node-crashes-with-err-ossl-evp-unsupported.md) — A Docker image with the wrong Node or OpenSSL version can break Next.js builds; align the base image and runtime.
- [Postgres Generates Duplicate IDs After a Manual Import Leaves the Sequence Behind](https://bfzli.com/postgres-generates-duplicate-ids-after-a-manual-import-leaves-the-sequence-behind.md) — Postgres inserts collide when an imported table’s sequence is lower than existing rows; reset the sequence to match the data.
- [Deno Fails a Fetch Call with "Requires net access" in a Worker](https://bfzli.com/deno-fails-a-fetch-call-with-requires-net-access-in-a-worker.md) — Deno blocks outbound requests without the right permission flags or allowlist; grant network access for the target host.
- [Vite Dev Server Fails to Start with "Port 5173 is already in use"](https://bfzli.com/vite-dev-server-fails-to-start-with-port-5173-is-already-in-use.md) — Vite stops before serving when another process already binds the default port; free the port or choose a new one safely.
- [Next.js Route Handler Buffers Server-Sent Events and the Client Never Receives Updates](https://bfzli.com/next-js-route-handler-buffers-server-sent-events-and-the-client-never-receives-updates.md) — Next.js can buffer SSE responses unless the handler returns a streaming response with the right headers and runtime.
- [Nuxt Scheduled Task Never Runs Because Nitro Cron Is Not Registered](https://bfzli.com/nuxt-scheduled-task-never-runs-because-nitro-cron-is-not-registered.md) — Nuxt cron jobs stay silent when Nitro never registers the scheduled route or preset; fix the task registration and deployment target.
- [Cloudflare Pages Build Fails with "require is not defined" After a CommonJS Import](https://bfzli.com/cloudflare-pages-build-fails-with-require-is-not-defined-after-a-commonjs-import.md) — Cloudflare Pages breaks when a build step loads CommonJS code in an ESM-only runtime; fix the module format mismatch.
- [Vite Refuses a CSS Import from `node_modules` with "does not exist under root" During Build](https://bfzli.com/vite-refuses-a-css-import-from-node-modules-with-does-not-exist-under-root-during-build.md) — A production build can fail when a stylesheet import points outside Vite’s project root or references an unsupported path.
- [Docker Cannot Reach Postgres on localhost Because the App Container Resolves Its Own Loopback Interface](https://bfzli.com/docker-cannot-reach-postgres-on-localhost-because-the-app-container-resolves-its-own-loopback-interface.md) — A containerized app fails to connect to `localhost` because `127.0.0.1` points at the container, not the database host.
