'Convert node module resolution to "fully specified" with Typescript

I have a Typescript module that needs to work in node and the browser. I use import myModule from './myModule' throughout and when I import my module in create-react-app I get this error:

'BREAKING CHANGE: The request './myModule' failed to resolve only because it was resolved as fully specified'.

Is there a Typescript settings to be able to convert my "not fully specified" to "fully specified" during compilation?

Here is my tsconfig.json:

{
  "extends": "@tsconfig/recommended/tsconfig.json",
  "include": ["./src"],
  "compilerOptions": {
    "module": "ES2020",
    "declaration": true,
    "moduleResolution": "Node",
    "outDir": "./dist",
    "jsx": "react"
  },
  "exclude": ["**/*.spec.ts"]
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source