Skip to content

[bun] No matching export in "node_modules/node-fetch-native/dist/proxy.cjs" #145

@pi0

Description

@pi0

Bun: 1.0.25

Git repo: https://github.com/tkjaergaard/giget-bun-reproduction

Steps to reproduce

  1. Clone repository
  2. Install Bun version 1.0.25 (https://bun.sh)
  3. Run bun install to install dependencies
  4. Run build command
$ bun build index.ts --outdir=dist --target=node

Error

11 | import { fetch } from 'node-fetch-native/proxy';
              ^
error: No matching export in "node_modules/node-fetch-native/dist/proxy.cjs" for import "fetch"
    at /Users/thomaskjaergaard/projects/internal/giget-bun-reproduction/node_modules/giget/dist/index.mjs:11:10

Originally posted by @tkjaergaard in #140 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions