Open amankumarrr opened 1 month ago
I'm attempting to use aliases for imports, but I'm encountering an issue where Vite is unable to resolve the paths when generating config.prebuild.jsx.
config.prebuild.jsx
https://github.com/amankumarrr/tina-module-alias-issue
yarn run
../../components/blocks/hero
@/components-blocks/hero
Windows 11 Browser - Chrome - Edge
Screenshot:
Figure: Error getting while importing templates using alias
I am experiencing the same issue with my code. I use a path alias in my tsconfig.json that isn't recognized by Vite:
"paths": { "@/*": ["./*"] }
Describe the issue that you're seeing. Any Loom videos or screenshots usually help a lot!
I'm attempting to use aliases for imports, but I'm encountering an issue where Vite is unable to resolve the paths when generating
config.prebuild.jsx
.Reproduction
https://github.com/amankumarrr/tina-module-alias-issue
Steps to reproduce
From Reproduction URL
yarn run
Steps to Reproduce from a new Starter repo
../../components/blocks/hero
to@/components-blocks/hero
) in page.tsyarn run
System Info
Screenshot:
Figure: Error getting while importing templates using alias
Validations