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

Fix server-side rendering #97

Open
michaelfester opened this issue Jul 8, 2023 · 0 comments
Open

Fix server-side rendering #97

michaelfester opened this issue Jul 8, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@michaelfester
Copy link
Contributor

Describe the bug
Currently, @markprompt/web does not build on the server side.

To Reproduce
Steps to reproduce the behavior:

  1. Create a swizzled Docusaurus project
  2. Add a top-level import of @markprompt/web in pages/theme/SearchBar/index.tsx
  3. Run npm run build
  4. See Docusaurus server build error, complaining that document does not exist.

Expected behavior
Server-side building should not break. We should avoid all references to client-only APIs outside of client-side hooks.

@michaelfester michaelfester added the help wanted Extra attention is needed label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

1 participant