Replies: 1 comment
-
|
vite doesn't resolve absolute paths like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am trying to follow this tutorial (https://www.youtube.com/watch?v=_W3R2VwRyF4) on youtube and am trying to test out the button component, but I keep getting an error message:
[plugin:vite:import-analysis] Failed to resolve import "src/lib/utils" from "src/components/ui/button.tsx". Does the file exist?
Both "utils.ts" and "button.tsx" are located in the correct path, so I am really confused why it is not working.
Here is a screen shot of the rest of the error message:
I am assuming that it is a syntax OR a path error. Does anyone have any thoughts? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions