Skip to content

Commit

Permalink
fix(dev): read property of undefined (#5177)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkx committed Oct 2, 2021
1 parent e8a1d19 commit 70e882f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function printHttpServerUrls(
config: ResolvedConfig
): void {
const address = server.address()
const isAddressInfo = (x: any): x is AddressInfo => x.address
const isAddressInfo = (x: any): x is AddressInfo => x?.address
if (isAddressInfo(address)) {
const hostname = resolveHostname(config.server.host)
const protocol = config.server.https ? 'https' : 'http'
Expand Down

0 comments on commit 70e882f

Please sign in to comment.