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
` ✓ Compiled /pages/dashboard/wallets in 2.6s
⨯ Error: ENOENT: no such file or directory, open '[project]/node_modules/@anastasia-labs/cardano-multiplatform-lib-nodejs/cardano_multiplatform_lib.js [app-ssr] (ecmascript)/cardano_multiplatform_lib_bg.wasm'
at [project]/src/app/components/ui/wallets/lucid.tsx [app-ssr] (ecmascript) (src/app/components/ui/wallets/lucid.tsx:4:0)
at [project]/src/app/pages/dashboard/wallets/page.tsx [app-ssr] (ecmascript) (src/app/pages/dashboard/wallets/page.tsx:4:0)
2 |
3 | import { useEffect, useState } from "react";
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi guys,
just trying to use wallet functionality in my nextjs 15 app like so
`"use client";
import { useEffect, useState } from "react";
import { Lucid, Blockfrost, generatePrivateKey, generateSeedPhrase, LucidEvolution } from "@lucid-evolution/lucid";
import { Network } from "@lucid-evolution/core-types";
const CHAIN_URL = process.env.NEXT_PUBLIC_BLOCKFROST_CHAIN_URL;
const API_KEY = process.env.NEXT_PUBLIC_BLOCKFROST_API_KEY;
const CHAIN_NETWORK = process.env.NEXT_PUBLIC_CHAIN_NETWORK as Network;
interface WalletDetails {
privateKey: string;
address: string;
seedPhrase: string;
}
export default function LucidWallet() {
const [lucid, setLucid] = useState<LucidEvolution | null>(null);
const [walletDetails, setWalletDetails] = useState<WalletDetails | null>(null);
}
`
main.tsx
`"use client";
import {useEffect} from "react";
import LucidWallet from "@/app/components/ui/wallets/lucid";
export default function Page() {
}`
and i am getting the following errors
` ✓ Compiled /pages/dashboard/wallets in 2.6s
⨯ Error: ENOENT: no such file or directory, open '[project]/node_modules/@anastasia-labs/cardano-multiplatform-lib-nodejs/cardano_multiplatform_lib.js [app-ssr] (ecmascript)/cardano_multiplatform_lib_bg.wasm'
at [project]/src/app/components/ui/wallets/lucid.tsx [app-ssr] (ecmascript) (src/app/components/ui/wallets/lucid.tsx:4:0)
at [project]/src/app/pages/dashboard/wallets/page.tsx [app-ssr] (ecmascript) (src/app/pages/dashboard/wallets/page.tsx:4:0)
2 |
3 | import { useEffect, useState } from "react";
dependency
"@lucid-evolution/lucid": "^0.4.18",
any help will be appreciated
Beta Was this translation helpful? Give feedback.
All reactions