Replies: 1 comment
-
Have you check example repo? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
trying to use the basic mesh js example in my next js project
`
"use client";
import { useEffect, useState } from "react";
import { MeshWallet } from '@meshsdk/core';
import { IWallet } from "@meshsdk/common";
import { QRCodeCanvas } from "qrcode.react";
export default function MeshWalletComponent() {
const [wallet, setWallet] = useState<IWallet | null>(null);
const [address, setAddress] = useState<string | null>(null);
/* if (fs) {
fs.writeFileSync('me.sk', secret_key);
}*/
} else {
throw new Error('Invalid secret_key: ' + secret_key);
}
/* if (fs) {
fs.writeFileSync('me.addr', unusedAddresses[0]);
}*/
} else {
throw new Error('No unused addresses available');
}
};
}
main.tsx
"use client";
import {useEffect} from "react";
import LucidWallet from "@/app/components/ui/wallets/lucid";
import MeshWalletComponent from "@/app/components/ui/wallets/mesh";
export default function Page() {
}
`
have having the following errors
`Build Error
Next.js (15.1.3) out of date (learn more) (Turbopack)
Failed to compile
./node_modules/@sidan-lab/sidan-csl-rs-browser/sidan_csl_rs_bg.js:39691:17
Module not found: Can't resolve
39689 |
39690 | export function __wbg_require_0993fe224bf8e202(arg0, arg1) {
https://nextjs.org/docs/messages/module-not-found`
dependecy
"@meshsdk/core": "^1.8.9",
Beta Was this translation helpful? Give feedback.
All reactions