Skip to content
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 500 on vercel with nuxt + SSR #892

Open
5 tasks done
dethdkn opened this issue Jan 15, 2025 · 0 comments
Open
5 tasks done

Error 500 on vercel with nuxt + SSR #892

dethdkn opened this issue Jan 15, 2025 · 0 comments

Comments

@dethdkn
Copy link

dethdkn commented Jan 15, 2025

Validations

Describe the bug

When running my app locally I can open pages that contain shiki and works perfectly, but on vercel I get this error

Cannot find module '/var/task/node_modules/shiki/dist/wasm.mjs' imported from /var/task/node_modules/shiki/dist/bundle-full.mjs

When navigating to the page, the error doesn't occur, only when I reload the page (I guess when the page is loaded trough SSR)

Code
Example

I tried everything to find the problem, but it only happens when I host it on vercel
Is it a problem with my code? or a shiki bug that happens only on vercel?

Reproduction

Host a shiki code with SSR on vercel

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
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

No branches or pull requests

1 participant