Skip to content

fix: remove TS5-only option from hono boilerplate tsconfig#1472

Open
anuragbanerjee wants to merge 1 commit intovercel:mainfrom
anuragbanerjee:fix/hono-vercel-dev-502-1240
Open

fix: remove TS5-only option from hono boilerplate tsconfig#1472
anuragbanerjee wants to merge 1 commit intovercel:mainfrom
anuragbanerjee:fix/hono-vercel-dev-502-1240

Conversation

@anuragbanerjee
Copy link
Copy Markdown

@anuragbanerjee anuragbanerjee commented May 4, 2026

Description

Fixes the local vercel dev failure for the Hono boilerplate by removing the TS5-only verbatimModuleSyntax compiler option from framework-boilerplates/hono/tsconfig.json.

This addresses issue #1240 where local dev could fail before startup with TS5023: Unknown compiler option 'verbatimModuleSyntax' when a TS4.9 toolchain path is used.

Before

# Local dev can fail before serving requests
npx vercel@48.1.6 dev --yes

# Representative failure in affected toolchain paths
TS5023: Unknown compiler option 'verbatimModuleSyntax'

# Runtime symptom when function fails to boot
502 BAD_GATEWAY
NO_RESPONSE_FROM_FUNCTION

After

# TS4.9 config parse no longer fails
npx -y -p typescript@4.9.5 tsc --showConfig -p framework-boilerplates/hono/tsconfig.json

# Project still typechecks
npx tsc --noEmit

# Local dev starts successfully
npx vercel@48.1.6 dev --yes
# -> Ready! Available at http://localhost:3000

# Endpoint responds successfully
curl -i http://localhost:3000
# -> HTTP/1.1 200 OK

Demo URL

N/A (local dev server validation only)

Type of Change

  • New Example
  • Example updates (Bug fixes, new features, etc.)
  • Other (changes to the codebase, but not to examples)

New Example Checklist

  • 🛫 npm run new-example was used to create the example
  • 📚 The template wasn't used but I carefuly read the Adding a new example steps and implemented them in the example
  • 📱 Is it responsive? Are mobile and tablets considered?

Drop verbatimModuleSyntax so local vercel dev toolchains that parse tsconfig with TypeScript 4.9 no longer fail with TS5023 before serving the example.
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mintlify-docs-rewrite Error Error May 4, 2026 5:46am

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 4, 2026

@anuragbanerjee is attempting to deploy a commit to the Vercel Examples Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 4, 2026

Deployment failed with the following error:

The `vercel.ts` schema validation failed with the following message: `rewrites[0]` missing required property `destination`

Learn More: https://vercel.com/docs/concepts/projects/project-configuration

@anuragbanerjee anuragbanerjee marked this pull request as ready for review May 4, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant