vite-ssr
vite-ssr copied to clipboard
SyntaxError: import not found: useContext
trafficstars
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.