Closed
Description
π Search Terms
"imports", "# imports"
π Version & Regression Information
- This is a bug
- As far as I know, it has never worked
β― Playground Link
https://github.com/magnusriga/my-app
π» Code
// foo.tsx
import { Bar } from "#app/bar"; // Resolved by TS, but lacking Intellisense (ctrl+space suggestions).
import { Baz } from "my-app/baz"; // Resolved by TS, but lacking Intellisense (ctrl+space suggestions).
import { Qux } from "./qux"; // Resolved by TS and has full Intellisense.
export const Foo = () => {
return (
<>
<Bar bar="bar" />
<Baz baz="baz" />
<Qux qux="qux" />
</>
);
};
// bar.tsx (baz.tsx and qux.tsx are similar)
export const Bar = ({bar}: {bar: string}) => {
return <div>{bar}</div>
}
// package.json
{
...
"name": "my-app",
"imports": {
"#app/*": "./src/app/*.js"
},
"exports": {
"./*": "./src/app/*.js"
},
...
I am using "typescript": "5.5.0-dev.20240314"
.
π Actual behavior
The import specifiers do not provide Intellisense suggestions. TS is able to resolve the files however, so there is no TS error.
π Expected behavior
The expected behavior is for Intellisense to understand the TS resolution and provide suggestions with ctrl+space.
Additional information about the issue
No response