AntiPattern

Module Import Resolution Traps

module-import-resolution-traps

Module imports fail or change behavior depending on entrypoint and reload timing because resolution precedence, version alignment, and Next.js client/server boundaries interact, causing TS/ESM to load the wrong file, run before an import map, or mismatch dependencies.