Skip to content

fix: replace defineHandler with defineEventHandler#2102

Open
Sigmabrogz wants to merge 2 commits intosolidjs:mainfrom
Sigmabrogz:fix/h3-define-event-handler
Open

fix: replace defineHandler with defineEventHandler#2102
Sigmabrogz wants to merge 2 commits 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 6b2cafb
🔍 Latest deploy log https://app.netlify.com/projects/solid-start-landing-page/deploys/69b421d22b725f000829d53d
😎 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

🦋 Changeset detected

Latest commit: 6b2cafb

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another 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: 65b9843

@Sigmabrogz
Copy link
Author

I've added the changeset as requested.

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