Skip to content

Commit 7033ea5

Browse files
authored
fix(repl): Go to Warning Position breaks non errors without a file (#514)
* Push * Add changeset
1 parent fc4e377 commit 7033ea5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/sweet-news-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/repl': patch
3+
---
4+
5+
(fix) Go to Warning Position breaks non errors without a file

packages/repl/src/lib/Repl.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@
239239
async function go_to_warning_pos(item) {
240240
if (!item) return;
241241
242+
// If its a bundler error, can't do anything about it
243+
if (!item.filename) return;
244+
242245
await handle_select(item.filename);
243246
244247
$module_editor?.focus();

0 commit comments

Comments
 (0)