Skip to content

Commit 0ca2b01

Browse files
committed
fix
1 parent 9fb31d5 commit 0ca2b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/dev/elements.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function assign_locations(node, filename, locations) {
6464
*/
6565
export function print_location(element) {
6666
// @ts-expect-error
67-
const loc = element.__svelte_meta.loc;
67+
const loc = element.__svelte_meta?.loc;
6868
if (!loc) return;
6969

7070
// add a zero-width space after `/` characters to prevent Chrome devtools printing it as a link

0 commit comments

Comments
 (0)