Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/nodeNextPackageSelfNameWithOutDir.errors.txt.diff

20 lines
936 B
Diff

--- old.nodeNextPackageSelfNameWithOutDir.errors.txt
+++ new.nodeNextPackageSelfNameWithOutDir.errors.txt
@@= skipped -0, +0 lines =@@
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.ts(1,21): error TS2307: Cannot find module '@this/package' or its corresponding type declarations.
!!! 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.
@@= skipped -9, +10 lines =@@
".": "./dist/index.js"
}
}
-==== index.ts (0 errors) ====
+==== index.ts (1 errors) ====
import * as me from "@this/package";
+ ~~~~~~~~~~~~~~~
+!!! error TS2307: Cannot find module '@this/package' or its corresponding type declarations.
me.thing();