Pages

Topics

Tools

↑↓navigate↵openescclose

All syntax guides

Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.

3,965 guides across 14 topics

Topics

Latest guides

3D diagram of a page slab with an empty suspended card above it and a query tag, headline MISSING SUSPENSE
Next.js

Next.js: useSearchParams() Should Be Wrapped in a Suspense Boundary

A static prerender has no query string, so Next needs a Suspense boundary. Where the boundary belongs, why force-dynamic is different, and how to keep search pages indexable.

Next.jsReactSuspenseApp Router
3D diagram of a solid type block beside a hollow one with a question-mark hole and a rejected arrow, headline TS2322
TypeScript

TS2322: Type 'string | undefined' Is Not Assignable to Type 'string'

strictNullChecks makes maybe-missing values visible at compile time. Narrow at the boundary, keep ?undefined? honest, and know which flag produces TS18048 instead.

TypeScriptstrictNullChecksType SafetyDebugging
3D diagram of an import arrow stopped by a module wall with a dashed door opening, headline OUTSIDE A MODULE
Node.js

SyntaxError: Cannot use import statement outside a module

A .js file is CommonJS unless package.json says module. The three valid configurations, the __dirname cascade, JSON import attributes and the browser version of the same error.

Node.jsES ModulesJavaScriptBuild
3D diagram of a dependency tree where two branches meet one socket node with a clash marker, headline ERESOLVE
Node.js

npm ERESOLVE: unable to resolve dependency tree

Since npm 7 a peer conflict is a hard error. How to read the tree dump, and when to upgrade, override, use --legacy-peer-deps, or reach for --force.

npmNode.jsDependenciesCI
3D diagram of a sealed package crate with a lock and a cyan key outside, headline EXTERNALLY MANAGED
Python

pip: error: externally-managed-environment and PEP 668

PEP 668 blocks pip from touching a distribution's Python. Why the marker file exists, which venv, pipx and apt paths replace it, and when --break-system-packages is honest.

PythonpipPEP 668Linux
3D illustration of brace blocks with a stray amber comma wedged in and a clean bracket beside it
TypeScript

JSON.parse Unexpected Token: Trailing Commas, Comments and BOM

JSON is stricter than JavaScript and stops at the first byte it cannot read. Which rule each message names, and the parser to use when you cannot fix the producer.

JavaScriptTypeScriptJSONDebugging
3D illustration of an array grid plate with a broken connector beside a rebuild wrench
Python

NumPy 2: Module Compiled Against API Version 0x10

NumPy 2 changed its C ABI, so extensions built against 1.x headers cannot resolve _ARRAY_API. Rebuild, upgrade the wheel, or pin numpy<2 as a stopgap.

PythonNumPyPackagingDebugging
3D illustration of a jar cube stamped with a version plate rejected by an older JVM gate
Java

UnsupportedClassVersionError: Class File Version 61 vs 65

Bytecode newer than the JVM fails before main runs. --release, not -source/-target, keeps the class version and the API surface in agreement.

JavaJVMBuildDeployment
3D illustration of a padlock gate with a legacy key plug floating outside and a cyan replacement key
Node.js

ERR_OSSL_EVP_UNSUPPORTED: digital envelope routines on OpenSSL 3

Node 17+ ships OpenSSL 3, where md4 lives in a legacy provider webpack 4 asks for by default. Upgrade, change hashFunction, or bridge with the legacy provider.

Node.jsOpenSSLWebpackBuild
3D illustration of a pod being pushed off a node grid by a rising red usage bar
Kubernetes

Kubernetes Pod Evicted: ephemeral-storage Pressure Explained

Evicted pods are killed by the kubelet, not restarted. Requests, log caps and emptyDir size limits decide who dies first on a full node.

KubernetesStorageEvictionTroubleshooting