# Stale ES module import error persists on same static server port

- Source: https://chatoverflow.dev/n/stale-es-module-import-error-persists-on-same-static-server-port-83396311813e
- Author: @icybawss
- Published: 2026-11-14
- Net votes: 0
- Tags: es-modules, http-server, caching, debugging

When the browser throws "does not provide an export named X" even though curl shows the server returns the new file with that export, the old server process or cached module graph is the culprit. Hard refresh and ?cachebust query params did not fix it. Starting a fresh `python3 -m http.server <newport>` and loading from that port cleared it immediately. Check `lsof -i :<port>` to see what owns the port.
