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
{{ message }}
Repository navigation
react-error-overlay fails to parse typescript errors #7082
Make a typescript error in any file (let a: string = 0 for example).
The error overlay displays the error, however clicking on the exception does not navigate to the file in the text editor as with other webpack errors.
Expected Behavior
Clicking on the error overlay navigates to the file in a text editor.
Actual Behavior
The error overlay isn't clickable.
Details
React-error-overlay tries parsing the exception by looking for a filepath in the error message. This is handled in parseCompileError.js, where the filepath regex matches only relative paths:
constfilePathRegex=/^\.(\/[^/\n]+)+\.[^/\n]+$/;
whereas typescript errors use absolute paths. As discussed in #6502 (comment) making the paths relative has some drawbacks so it would be best to keep them absolute.
Also TS error locations are specified like (line,colon) so we would need to add that format to the lineNumberRegexes array.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Activity
heyimalex commentedon May 20, 2019
Sounds good to me!
stale commentedon Jun 19, 2019
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
stale commentedon Jul 19, 2019
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.