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 electron.server.ts for remix v2... #21

Closed
wants to merge 1 commit into from
Closed

fix electron.server.ts for remix v2... #21

wants to merge 1 commit into from

Conversation

tonywoode
Copy link

@tonywoode tonywoode commented Oct 22, 2023

without globals, the root.tsx causes server fail with "[remix-electron] TypeError: Headers is not a constructor", so the template doesn't load. I believe this is about: see https://remix.run/docs/en/main/start/v2#installglobals
hence adding the globals lets the template's component load and render

without globals, the root.tsx causes server fail with "[remix-electron] TypeError: Headers is not a constructor"
see https://remix.run/docs/en/main/start/v2#installglobals
@itsMapleLeaf
Copy link
Owner

Thanks for this! I just merged an update for v2 to fix a bunch of other stuff, including a call to installGlobals() in the library itself, so I think we're good here 🙂

@tonywoode
Copy link
Author

saw that and upgraded my project with your changes - all working great!

tonywoode added a commit to tonywoode/qp-ag-grid-remix that referenced this pull request Oct 23, 2023
* see itsMapleLeaf/remix-electron#21
* effectively just diffmerged his template against files here
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

Successfully merging this pull request may close these issues.

2 participants