Skip to content

Missing require when using with bun #123

@huvber

Description

@huvber

I'm trying to use the library with bun (with electrobun) and when start it returns this error

[electrobun dev --watch] Initial build failed: 6 | const addon = require('../../build/Release/smartcard_napi.node');
                          ^
error: Could not resolve: "../../build/Release/smartcard_napi.node"
    at /Users/andrea/workspace/niko-tv-bun/node_modules/smartcard/dist/lib/index.js:6:23

I checked the code and actually it try to require that file that it's not present in the codebase.
How the addon are supposed to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions