-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Build fails for SvelteKit vercel adapter #54
Comments
Hello, can you provide some more details? Also, a simple example would be great. I'm also using the latest version inside of a Vercel project, and it's working fine. |
Thanks for the prompt response. I dug a little deeper, and found out that it only breaks for the import adapter from '@sveltejs/adapter-vercel';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({runtime: 'edge'})
}
};
export default config; |
It looks like the edge runtime only supports web APIs. From my little experience with it, you should use the edge runtime to handle requests that require fast responses near users, so probably you are accidentaly importing the component/ If, for some reason, you need to actually use it there, I honestly don't think there is a way for me to help you out, as the issue seems to be with Shiki. You might have better chances to have it fixed asking there. |
I am just trying out the v4 of this library in a SvelteKit project, but the build fails, probably due to this issue of
shiki
trying to load files usingfs
- vercel/vercel#8726.The text was updated successfully, but these errors were encountered: