Skip to content

Blog

Python ModuleNotFoundError: Causes and Fixes

ModuleNotFoundError: No module named 'x' almost always means the wrong interpreter, not a missing package. Here's how to diagnose and fix it for good.

Error: listen EADDRINUSE — Causes and Fixes

Node's 'listen EADDRINUSE: address already in use' means something already owns that port. Here's why, and the exact fixes for dev, watch mode, and Docker.

TypeError: "x" is not a function — Causes and Fixes

TypeError: x is not a function fires when you call a value that isn't callable — a typo, a lost `this`, or the wrong shape from an API. Here's how to fix each case.

Angular NG8001 & NG0304: 'X' Is Not a Known Element — Fix

Angular's NG8001 (build-time) and NG0304 (runtime) both mean the compiler can't resolve an element. Here's the exact cause and the real fix, standalone and NgModule.

Angular NG0100: Fix ExpressionChangedAfterItHasBeenCheckedError

NG0100 ExpressionChangedAfterItHasBeenCheckedError means a binding changed after Angular's dev-mode verification pass. Here's the exact cause, and the fix.

Node.js: require is not defined in ES Module Scope

Fix Node's 'ReferenceError: require is not defined in ES module scope' and its __dirname sibling using createRequire and import.meta.

Node.js: Cannot Use Import Statement Outside a Module

Node.js's SyntaxError: Cannot use import statement outside a module still fires today, usually from "type": "commonjs". Here is the exact fix and why.

React Native: "main" Has Not Been Registered — Fix

Invariant Violation: "main" has not been registered — here's exactly why AppRegistry throws this on iOS and Android in RN 0.79–0.87, and how to fix it fast.

React Native: "Unimplemented Component: <X>" — Fix

Fix React Native's "Unimplemented component: <X>" and the legacy "requireNativeComponent … was not found in the UIManager" error — a native view manager the JS bundle expects but the compiled app doesn't have

Flex Item Overflows Container? Fix min-width: auto

A flex child won't shrink and text-overflow: ellipsis silently does nothing? It's the automatic minimum size (min-width: auto) — here's the fix.