neumino / rethinkdbdash

An advanced Node.js driver for RethinkDB with a connection pool, support for streams etc.
MIT License
848 stars 109 forks source link

Modules don't get required when using pkg binary compiler #389

Closed nicolaiunrein closed 4 years ago

nicolaiunrein commented 5 years ago

Hey, I'm using Rethinkdbdash inside a Node.js app which I would like to compile to a binary file using pkg.js. All other modules resolve but for Rethinkdbdash I get an Error at runtime for all the files in the /lib directory, saying module could not be found. If I require every one of them (without assigning them to a variable), I don't get any errors. As a quick solution I added a file all.js to the Rethinkdbdash module and now I'm thinking about a pull request.. But I think I might be missing something.

nicolaiunrein commented 4 years ago

Closing since this is a problem of the bundler.