We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
here is the code
const bip39 = require("bip39")
const hey = () =>{ const worddd = 'arrow wear carbon enact shadow expand sword custom tape ice display deliver' const yrsss = bip39.validateMnemonic(worddd) if (yrsss) { console.log(true) } }
hey()
The text was updated successfully, but these errors were encountered:
Its returning 'true' in my case. Check your system and try again.
Sorry, something went wrong.
Returns false for me as well. Firefox 123.01 Chrome 122.0.6 MacOS Sonoma 14.3.1
vite react swc
In vite, i had to add this to get it to work:
npm i buffer
// vite.config.ts import { defineConfig } from "vite"; import react from "@vitejs/plugin-react-swc";
// https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], optimizeDeps: { include: ["bip39"], }, resolve: { alias: { buffer: "buffer", // Ensures that imports/requires of 'buffer' are aliased to the 'buffer' package }, }, });
// src/main.tsx import "./index.css";
// eslint-disable-next-line unicorn/prefer-node-protocol, node/prefer-global/buffer import { Buffer } from "buffer"; import React from "react"; import ReactDOM from "react-dom/client";
import App from "./app"; window.Buffer = Buffer;
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion ReactDOM.createRoot(document.querySelector("#root")!).render( <React.StrictMode> </React.StrictMode>, );
No branches or pull requests
here is the code
const bip39 = require("bip39")
const hey = () =>{
const worddd = 'arrow wear carbon enact shadow expand sword custom tape ice display deliver'
const yrsss = bip39.validateMnemonic(worddd)
if (yrsss) {
console.log(true)
}
}
hey()
The text was updated successfully, but these errors were encountered: