I had a similar problem updating a Node.js project to use moduleResolution of node16.
Removing an old paths section that explicitly forced the TS compiler to look in a specific location was the solution.
"paths": {
"*": [
"node_modules/*"
]
}