Closed
Description
if I have this import
import { Button } from '@/components/ui/button'
Then it works fine in the file
'app/page.tsx'
app/hello/page.tsx
etc
However, if I have
app/(test)/test/page.tsx
I get an error "Cannot find module"
@typescript/native-preview: "7.0.0-dev.20250523.1",
Ext Version: 0.20250523.1
Metadata
Metadata
Assignees
Labels
No labels
Activity
mustafa-hanif commentedon May 26, 2025
+1 this is a major problem in nextjs
jakebailey commentedon May 27, 2025
Do you have a repo we could test?
mikerudge commentedon May 28, 2025
Here you go @jakebailey
https://github.com/mikerudge/tsgo-error-example
jakebailey commentedon May 28, 2025
Thanks. The issue here is that in the editor, the file is not being considered part of the project, so is instead being treated as an "inferred" file without a tsconfig.
Which I suspect is due to us not unescaping the URI.