frandiox/vite-ssr

SyntaxError: import not found: useContext

mrweiner opened this issue · 0 comments

The readme and a handful of issues describe using import { useContext } from 'vite-ssr' to access the context, but doing that seems to throw SyntaxError: import not found: useContext. Is there a replacement that exists for this?

It looks like entry-server.js mentions // This can be injected with useSSRContext() in setup functions, but I don't think that that is exactly a replacement for this AFAICT.