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

Make isomorphic, support Node.js #9

Open
tom-sherman opened this issue Apr 30, 2021 · 1 comment
Open

Make isomorphic, support Node.js #9

tom-sherman opened this issue Apr 30, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@tom-sherman
Copy link
Owner

tom-sherman commented Apr 30, 2021

For some reason this is not plug and play, likely due to inconsistencies between node-fetch and global fetch included in typescript.

Also, Headers are not available globally so passing anything other than an instances of Headers to the constructor of ImmutableHeaders throws an error as the internal Headers object cannot be created.

@tom-sherman tom-sherman added bug Something isn't working help wanted Extra attention is needed and removed bug Something isn't working labels Apr 30, 2021
@tom-sherman tom-sherman changed the title ImmutableHeaders are not compatible with node-fetch Make isomorphic, support Node.js Sep 15, 2021
@tom-sherman
Copy link
Owner Author

This may be fixed in Node 18 where Headers et al are available globally.

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
None yet
Development

No branches or pull requests

1 participant