error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'package.json'. Supply the `rootDir` compiler option to disambiguate.


!!! error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'package.json'. Supply the `rootDir` compiler option to disambiguate.
==== index.js (0 errors) ====
    // esm format file
    import * as self from "package";
    self;
==== index.mjs (0 errors) ====
    // esm format file
    import * as self from "package";
    self;
==== index.cjs (0 errors) ====
    // esm format file
    import * as self from "package";
    self;
==== package.json (0 errors) ====
    {
        "name": "package",
        "private": true,
        "type": "module",
        "exports": "./index.js"
    }