Replies: 2 comments 1 reply
-
You have to pass a baseUrl too.
|
Beta Was this translation helpful? Give feedback.
-
any solution? when i replace the "@" imports with direct imports like "../" it works. any way to resolve it, our tsconfig is the same |
Beta Was this translation helpful? Give feedback.
-
Summary
I get the following error of module not found in my page.jsx:
Module not found: Can't resolve '@/components/ui/button'
.I am importing with
import { Button } from "@/components/ui/button";
Standard shadcn/ui button.My
jsconfig.json
is as follows:So it should allow for
@
type imports. I can't figure out why I keep getting this error. I tried to create a new project from scratch and still encounter it.Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions