Replies: 2 comments 2 replies
-
Have you check example repo? |
Beta Was this translation helpful? Give feedback.
2 replies
-
For added context, the above error occurs on build (using app router). ⨯ Error: ENOENT: no such file or directory, open '/Users/ben/_code/ada-drop/.next/server/vendor-chunks/sidan_csl_rs_bg.wasm'
at (ssr)/./node_modules/@sidan-lab/sidan-csl-rs-nodejs/sidan_csl_rs.js (.next/server/vendor-chunks/@sidan-lab.js:19:1)
at __webpack_require__ (.next/server/webpack-runtime.js:33:43)
at (ssr)/./node_modules/@meshsdk/core-csl/dist/index.js (.next/server/vendor-chunks/@meshsdk.js:71:1)
at __webpack_require__ (.next/server/webpack-runtime.js:33:43)
at (ssr)/./node_modules/@meshsdk/wallet/dist/index.js (.next/server/vendor-chunks/@meshsdk.js:137:1)
at __webpack_require__ (.next/server/webpack-runtime.js:33:43)
at (ssr)/./node_modules/@meshsdk/react/dist/index.js (.next/server/vendor-chunks/@meshsdk.js:115:1)
at __webpack_require__ (.next/server/webpack-runtime.js:33:43)
at eval (webpack-internal:///(ssr)/./src/hooks/useConnectedWallet.ts:11:72)
at (ssr)/./src/hooks/useConnectedWallet.ts (.next/server/app/page.js:1125:1)
at __webpack_require__ (.next/server/webpack-runtime.js:33:43)
at eval (webpack-internal:///(ssr)/./src/hooks/index.ts:15:77)
at (ssr)/./src/hooks/index.ts (.next/server/app/page.js:1070:1)
at __webpack_require__ (.next/server/webpack-runtime.js:33:43)
at eval (webpack-internal:///(ssr)/./src/app/page.tsx:8:64)
at (ssr)/./src/app/page.tsx (.next/server/app/page.js:300:1)
at Object.__webpack_require__ [as require] (.next/server/webpack-runtime.js:33:43) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/ben/_code/ada-drop/.next/server/vendor-chunks/sidan_csl_rs_bg.wasm',
digest: '2462769795'
}
GET / 500 in 8099ms
⚠ ./node_modules/@sidan-lab/sidan-csl-rs-browser/sidan_csl_rs_bg.wasm
The generated code contains 'async/await' because this module is using "asyncWebAssembly".
However, your target environment does not appear to support 'async/await'.
As a result, the code may not run as expected or may cause runtime errors.
Import trace for requested module:
./node_modules/@sidan-lab/sidan-csl-rs-browser/sidan_csl_rs_bg.wasm
./node_modules/@sidan-lab/sidan-csl-rs-browser/sidan_csl_rs.js
./node_modules/@meshsdk/core-csl/dist/index.js
./node_modules/@meshsdk/wallet/dist/index.js
./node_modules/@meshsdk/react/dist/index.js
./src/hooks/useConnectedWallet.ts
./src/hooks/index.ts
./src/app/page.tsx I've got my webpack setup: import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
reactStrictMode: true,
images: {
unoptimized: true,
},
compiler: {
styledComponents: true,
},
webpack: (config) => {
// Enable support for async WebAssembly and layers
config.experiments = {
asyncWebAssembly: true,
layers: true,
}
return config
},
}
export default nextConfig |
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