You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to initialize hashconnect in a Next.js 14 (Typescript) application, my application fails to compile, returning the error Cannot find module "crypto". This issue occurs during both npm run dev and npm run build.
To Reproduce:
Steps to reproduce the behavior:
Setup a Next.js 14 project.
Implement the hashconnect initialization as follows:
Run the application. Expected behavior:
The application compiles without errors, and hashconnect initializes correctly, allowing for wallet connection functionalities.
Environment:
OS: macos 14.0
Browser: Chrome
Version of Next.js: 14.1.4
Version of Node.js: 20.10.0
Version of hashconnect: 3.0.13
The text was updated successfully, but these errors were encountered:
This issue is due to the transitive dependency version of the hedera-wallet-connect library. This problem, documented in #190, was resolved in version 1.3.2 of HWC and addressed in this PR. However, hashconnect version 3.0.13 uses version 1.0.6 of HWC, which still contains the issue.
To resolve the issue, I overrode the dependency version in my package.json.
When attempting to initialize hashconnect in a Next.js 14 (Typescript) application, my application fails to compile, returning the error
Cannot find module "crypto"
. This issue occurs during bothnpm run dev
andnpm run build
.To Reproduce:
Steps to reproduce the behavior:
Setup a Next.js 14 project.
Implement the hashconnect initialization as follows:
Run the application.
Expected behavior:
The application compiles without errors, and hashconnect initializes correctly, allowing for wallet connection functionalities.
Environment:
The text was updated successfully, but these errors were encountered: