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

SyntaxError: import not found: useContext #171

Open
mrweiner opened this issue Jun 28, 2022 · 0 comments
Open

SyntaxError: import not found: useContext #171

mrweiner opened this issue Jun 28, 2022 · 0 comments

Comments

@mrweiner
Copy link

mrweiner commented Jun 28, 2022

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.

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