Cause 1 of 5
The import has no file extension.
ES modules do not guess extensions the way CommonJS does. Write it out: change import { x } from './utils' to import { x } from './utils.js'. This applies to TypeScript sources too — when the output is ESM, the specifier in your .ts file must already say .js, because that is the file that will exist at runtime.
Cause 2 of 5
The specifier points at a directory and expects an index file.
The ESM loader has no directory-index resolution. Import the file explicitly — ./utils/index.js — or give that folder a package.json with an exports field naming its entry point.
Cause 3 of 5
The package is not installed, or node_modules is stale after a branch switch.
Run npm ci to install exactly what the lockfile says, then confirm with npm ls <package> that it resolved. npm ci is the safe reinstall — it never silently changes the lockfile.
Cause 4 of 5
The case of the specifier does not match the file on disk.
macOS and Windows are case-insensitive by default; Linux containers and CI are not. ./Utils.js and ./utils.js are two different files in production. Rename the import to match the file exactly.
Cause 5 of 5
You are importing a subpath the package does not publish.
A package with an exports map in its package.json exposes only the subpaths listed there; everything else is deliberately unreachable. Open that file and import a path it actually declares.