-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Error when deploying to Vercel Edge Functions #828
Comments
Thanks for the bug report. What is the content of Or reproduction if you prefer. |
Thank you for looking into this! Here is the file: // Utils needed by Server Routing.
// Ensure we don't bloat the server-side with client utils
import { isBrowser } from '../utils/isBrowser';
import { assert } from '../utils/assert';
assert(isBrowser());
export * from '../utils/assert';
export * from '../utils/assertSingleInstance';
export * from '../utils/callHookWithTimeout';
export * from '../utils/checkType'; // Only used by Server Routing (not needed for Client Routing)
export * from '../utils/getCurrentUrl';
export * from '../utils/getGlobalObject';
export * from '../utils/hasProp';
export * from '../utils/isCallable';
export * from '../utils/isObject';
export * from '../utils/objectAssign';
export * from '../utils/parseUrl';
export * from '../utils/projectInfo';
export * from '../utils/slice';
export * from '../utils/unique'; // Only used by Server Routing (not needed for Client Routing) Line 5 is |
It's quite unexpected though: I guess at this point a reproduction would be the best. |
https://github.com/joshdchang/vps-edge-error Let me know if this works. |
Reproduction steps? |
Yes, sorry.
|
I made it work with vite-plugin-ssr on my fork: https://github.com/brillout/vps-edge-error. But seems like Solid is having a similar issue:
|
Thank you for looking into this so quickly and finding a fix! I agree that worker would make more sense - I will send the Vercel people a note. |
👍Also in case you think you can convince your employer: https://github.com/sponsors/brillout |
I'm a college student working on my own side project, but in the low chance it blows up I'll drop a sponsor haha :) Cool stuff your doing and I wish you luck. |
I see :-) Have fun! |
Description
I am using Vercel Edge Functions and Solid.js
This is the code for the renderer function that fails (
api/ssr.ts
):Error message + stack trace are included.
Error Message + Error Stack
The text was updated successfully, but these errors were encountered: