Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰Vite - Internal server error: Failed to resolve import #4488

Open
3 tasks done
amankumarrr opened this issue Apr 12, 2024 · 1 comment
Open
3 tasks done

馃悰Vite - Internal server error: Failed to resolve import #4488

amankumarrr opened this issue Apr 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@amankumarrr
Copy link

amankumarrr commented Apr 12, 2024

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

System Info

Windows 11
Browser
- Chrome 
- Edge

Screenshot:
image

Figure: Error getting while importing templates using alias

Validations

@AntonWeigel
Copy link

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": {
      "@/*": ["./*"]
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants