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

[Bug] [vite] (ssr) Error when evaluating SSR module virtual:react-router/server-build: |- ReferenceError: window is not defined #1119

Open
alindsay55661 opened this issue Jan 31, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@alindsay55661
Copy link

Describe the Bug
This won't compile with vite, so doesn't work with Remix, React Router 7 (framework mode), etc. Even though this is a server library, it appears to be referencing browser environments...

[vite] (ssr) Error when evaluating SSR module virtual:react-router/server-build:
|- ReferenceError: window is not defined

To Reproduce
Steps to reproduce the issue:

  1. import FirecrawlApp, { ScrapeResponse } from '@mendable/firecrawl-js' to a server module in any vite project

Expected Behavior
No errors are thrown.

Environment (please complete the following information):

  • OS: [Windows]
  • Firecrawl Version: 1.16.0
  • Node.js Version: 20.11.1
@alindsay55661 alindsay55661 added the bug Something isn't working label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant