-
-
Notifications
You must be signed in to change notification settings - Fork 32
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" bcrypt.darwin-arm64.node #721
Comments
I ran into the same issue with Vite // vite.config.ts
export default defineConfig({
optimizeDeps: {
exclude: ["@node-rs/argon2"],
},
}); esbuild import * as esbuild from 'esbuild'
await esbuild.build({
external: ["@node-rs/argon2"]
// other options …
}) |
I too faced the same issue on package @hpohlmeyer marking it as external will exclude the particular module from the build file, which when you try to run externally without any node_modules ( copy for example Error: Cannot find module '@node-rs/crc32-darwin-arm64' |
Yes, but if you deploy your production dependencies along-side your bundle this works fine. If you want a single bundled file, you are right, this approach definitely does not work. |
I got an error like this
i am using:
The text was updated successfully, but these errors were encountered: