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
Popular guides
Most readLatest guides
Page 8 of 397Next.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.
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.
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.
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.
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.
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.
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.
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.
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.
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.