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

packages/isomorphic-unfetch/index.d.ts - Exports and export assignments are not permitted in module augmentations. #82

Closed
eryi opened this issue Jul 20, 2018 · 3 comments

Comments

@eryi
Copy link

eryi commented Jul 20, 2018

When trying to compile using Typescript, I got the following error:

node_modules/isomorphic-unfetch/index.d.ts:18:3 - error TS2666: Exports and export assignments are not permitted in module augmentations.

18   export = unfetch;
     ~~~~~~

I don't really understand what's happening but I managed to work around it by manually deleting line 18.

In case its helpful to anybody, steps to reproduce:
Typescript Version 2.9.2

cd node_modules/isomorphic-unfetch
echo "{}" > tsconfig.json
tsc
@eryi
Copy link
Author

eryi commented Jul 20, 2018

Just to clarify above, my project is using Typescript and I was trying to compile that. I wasn't trying to compile isomorphic-unfetch with Typescript.

@maufarinelli
Copy link

I have the same exactly issue today.

@developit
Copy link
Owner

Fixed in unfetch@3.1.1 / isomorphic-unfetch@2.1.1

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

3 participants