Skip to content

Commit f1c2b32

Browse files
committed
chore: reuse warn
1 parent fc2107e commit f1c2b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router/src/experimental/route-resolver/resolver-dynamic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function createCompiledMatcher<
110110
if (typeof to === 'object' && (to.name || to.path == null)) {
111111
// relative location or by name
112112
if (__DEV__ && to.name == null && currentLocation == null) {
113-
console.warn(
113+
warn(
114114
`Cannot resolve an unnamed relative location without a current location. This will throw in production.`,
115115
to
116116
)

0 commit comments

Comments
 (0)