grantila / fetch-h2

HTTP/1+2 Fetch API client for Node.js
MIT License
336 stars 16 forks source link

Error: No valid exports main found for '.../already' #103

Closed sooxt98 closed 4 years ago

sooxt98 commented 4 years ago

image

grantila commented 4 years ago

Unable to reproduce, you need to share what your code is doing.

Just running yarn add fetch-h2 and running this, works fine for me:

const {fetch} = require('fetch-h2');

async function f(){
    const res = await fetch("https://google.com");
    const body = await res.text();
}
f();