You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a newly generated vite react-ts application, stack trace information in the error caught by error boundary contains incorrect information, probably due to a wrong sourcemap file.
The problem seems is that the latter one is a line number in a jsx processed file after jsx expansion, whereas line number should be of an original tsx file.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Describe the bug
In a newly generated vite react-ts application, stack trace information in the error caught by error boundary contains incorrect information, probably due to a wrong sourcemap file.
Reproduction application https://github.com/pragmasoft-ua/remove-vite-app
when run with
npm i && npm run dev
produces a screenshot, showing stack trace in both console and error boundary page.
Console shows a valid line number of an error
App.tsx:17
Whereas a stack trace in error boundary has an invalid line number
App@http://localhost:3000/src/App.tsx?t=1647602434195:50:19
The problem seems is that the latter one is a line number in a jsx processed file after jsx expansion, whereas line number should be of an original tsx file.
Reproduction
https://github.com/pragmasoft-ua/remove-vite-app
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: