-
Notifications
You must be signed in to change notification settings - Fork 88
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Win11 - Internal Error with Vite and TypeScript - "Unable to follow symbol for 'Promise'" Description #368
Comments
Xtravaganz
changed the title
Internal Error with Vite and TypeScript - "Unable to follow symbol for 'Promise'" Description
Win11 - Internal Error with Vite and TypeScript - "Unable to follow symbol for 'Promise'" Description
Aug 9, 2024
Appears to be related to |
Extra info: we found that this was only an issue on Windows, not Mac or Linux. It also only seems to be broken starting from version 4 of this library. Extra error info:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Note: Linux/Debian works (Docker tested) only Win11 has a problem.
I encountered an internal error while using Vite with TypeScript. The error message is as follows:
typescript - terminal message
[vite:dts] Internal Error: Unable to follow symbol for "Promise"
This issue occurs when attempting to initialize a promise within a function. The relevant code snippet is:
typescript - code
1
2
The error seems to originate from Vite's handling of TypeScript type declarations, particularly when dealing with the Promise type.
Reproduction
https://stackblitz.com/edit/stackblitz-starters-bmmh1n?file=api.ts
Steps to reproduce
Steps to Reproduce
Expected Behavior
Vite should correctly process the TypeScript types without throwing an internal error related to the Promise symbol.
Actual Behavior
Vite throws an internal error, stating it is unable to follow the symbol for Promise.
System Info
Validations
The text was updated successfully, but these errors were encountered: