Alias path Issue with storybook #9254
Unanswered
Hassanabdelqader
asked this question in
Help
Replies: 1 comment
-
|
Are you using TypeScript path aliases in a Just-In-Time Package? If so, this would be the issue, and we recommend using Node.js imports. If that's not the case, a minimal reproduction would be helpful. |
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.
-
Summary
the error happened when
i do pnpm build
but when i do pnpm dev or pnpm storybook it is work normally but the it is faild when i run pnpm build
here is the script
Type error: Cannot find module when using alias path @mic from UI shared package
inside app im using shared components from ui but i got the error
../../packages/ui/hooks/use-toast.ts:9:8
Type error: Cannot find module '@/components/ui/toast' or its corresponding type declarations.
when I'm using absolute path it is work normally but with alias path not working
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions