From 3ea71593aa4554ffe2db8578f4d1f7f92c475ae2 Mon Sep 17 00:00:00 2001 From: jovonni Date: Fri, 16 Aug 2024 13:45:31 -0400 Subject: [PATCH] fix(vite.config.ts): added resolutions for @noble/hashes dependencies --- ui/vite.config.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ui/vite.config.ts b/ui/vite.config.ts index 627a319..84d77e1 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -4,4 +4,16 @@ import react from '@vitejs/plugin-react'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + resolve: { + alias: { + '@noble/hashes/sha256': '../node_modules/@noble/hashes/src/sha256.ts', + '@noble/hashes/sha3': '../node_modules/@noble/hashes/src/sha3.ts', + '@noble/hashes/ripemd160': '../node_modules/@noble/hashes/src/ripemd160.ts', + '@noble/hashes/sha512': '../node_modules/@noble/hashes/src/sha512.ts', + '@noble/hashes/pbkdf2': '../node_modules/@noble/hashes/src/pbkdf2.ts', + '@noble/hashes/utils': '../node_modules/@noble/hashes/src/utils.ts', + '@noble/hashes/crypto': '../node_modules/@noble/hashes/src/crypto.ts', + + }, + }, });