-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VITE] isBot crashes the server in 2.4.1 if isbot is over v4 #8392
Comments
Thanks for the fix ! Undofortunately, the expected type seems to have changed for the export default function handleRequest(
request: Request,
responseStatusCode: number,
responseHeaders: Headers,
remixContext: EntryContext,
) {
return isbot(request.headers.get("user-agent") ?? "") // Added " ?? "" "to fix the type error. Hopefully it doesn't break anything.
? handleBotRequest(
request,
... |
This is resolved by #8385 - you can install |
Resolved by #8385 and will be available in the next release |
nah it's fine I've handled the dependancy import manually! |
🤖 Hello there, We just published version Thanks! |
1 similar comment
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
1 similar comment
🤖 Hello there, We just published version Thanks! |
Reproduction
https://stackblitz.com/edit/remix-run-remix-vwrwea
System Info
Used Package Manager
npm
Expected Behavior
Server should start with isbot since it's being used as part of entry.server.ts.
Actual Behavior
isbot
is being used inentry.server.ts
, when upgrading to 2.4.1 and using:server won't start and crashes with àTypeError: vite_ssr_import_4.default is not a function`
The text was updated successfully, but these errors were encountered: