Closed pi0 closed 5 months ago
If i set the build target to browser
it works. But if i set it to bun
or node
i get the error.
When running the script using bun index.ts
, i don't see the error either 🤔
Also if i use import { fetch } from 'node-fetch-native/proxy'
installed as a dependency i see the error.
Seems to more of an error with node-fetch-native/proxy
than giget?
I've added an example of using node-fetch-native directly in the reproduction repo: fetch-native-proxy.ts
@pi0 any progress on this? 😊
Hi. It is definitely on my track. only 24h per day is not enough (notes) 😅
@pi0 All good, just interested in where this was stranded 💪
@pi0 I've identified the issue. It's related to unjs/node-fetch-native.
I've re-created the issue here: https://github.com/unjs/node-fetch-native/issues/114.
@pi0 Think this should be closed since we fixed it in https://github.com/unjs/node-fetch-native/issues/114 😊✌️
Bun: 1.0.25
Git repo: https://github.com/tkjaergaard/giget-bun-reproduction
Steps to reproduce
bun install
to install dependenciesError
Originally posted by @tkjaergaard in https://github.com/unjs/giget/issues/140#issuecomment-1910092203