Skip to content

fix: replace defineHandler with defineEventHandler#2102

Open
Sigmabrogz wants to merge 1 commit intosolidjs:mainfrom
Sigmabrogz:fix/h3-define-event-handler
Open

fix: replace defineHandler with defineEventHandler#2102
Sigmabrogz wants to merge 1 commit intosolidjs:mainfrom
Sigmabrogz:fix/h3-define-event-handler

Conversation

@Sigmabrogz
Copy link

Fixes #2101

h3 no longer exports defineHandler. It was replaced by defineEventHandler. This updates the import and usage in @solidjs/start so that the generated template is buildable.

Resolves an issue where npm init solid@latest generates an unbuildable template because h3 no longer exports defineHandler. defineEventHandler is the modern API.

Signed-off-by: Sigmabrogz <bnb1000bnb@gmail.com>
@netlify
Copy link

netlify bot commented Mar 13, 2026

Deploy Preview for solid-start-landing-page ready!

Name Link
🔨 Latest commit 94e794e
🔍 Latest deploy log https://app.netlify.com/projects/solid-start-landing-page/deploys/69b3766e9e7d420008fb6764
😎 Deploy Preview https://deploy-preview-2102--solid-start-landing-page.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot
Copy link

changeset-bot bot commented Mar 13, 2026

⚠️ No Changeset found

Latest commit: 94e794e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 13, 2026

Open in StackBlitz

npm i https://pkg.pr.new/solidjs/solid-start/@solidjs/start@2102
npm i https://pkg.pr.new/solidjs/solid-start/@solidjs/vite-plugin-nitro-2@2102

commit: 5d9f429

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.

[Bug?]: npm init solid@latest generates a template that is unbuildable

1 participant