Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No loader is configured for ".node" files #2256

Closed
alherd-by opened this issue May 18, 2022 · 2 comments
Closed

No loader is configured for ".node" files #2256

alherd-by opened this issue May 18, 2022 · 2 comments

Comments

@alherd-by
Copy link

alherd-by commented May 18, 2022

I have case, when I need to use external library to hash passwords (argon2) in my netlify functions.
On netlify servers it's works fine. But when I'm trying to use netlify functions:serve on local machine I get this error:

No loader is configured for ".node" files: node_modules/argon2/lib/binding/napi-v3/argon2.node

    node_modules/argon2/argon2.js:12:12:
      12 │ } = require("./lib/binding/napi-v3/argon2.node");

Steps to reproduce:

  • create function with importing dependency argon2
@hyrious
Copy link

hyrious commented May 18, 2022

See #1051 (comment) and a working one in tsup.

@evanw
Copy link
Owner

evanw commented May 19, 2022

Closing as a duplicate of #1051.

@evanw evanw closed this as completed May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants