mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
593 B
Plaintext
21 lines
593 B
Plaintext
index.ts(2,21): error TS2307: Cannot find module '#/foo.js' or its corresponding type declarations.
|
|
|
|
|
|
==== package.json (0 errors) ====
|
|
{
|
|
"name": "package",
|
|
"private": true,
|
|
"type": "module",
|
|
"imports": {
|
|
"#/*": "./src/*"
|
|
}
|
|
}
|
|
==== src/foo.ts (0 errors) ====
|
|
export const foo = "foo";
|
|
==== index.ts (1 errors) ====
|
|
// esm format file
|
|
import { foo } from "#/foo.js";
|
|
~~~~~~~~~~
|
|
!!! error TS2307: Cannot find module '#/foo.js' or its corresponding type declarations.
|
|
foo;
|
|
|