Hi there, im using Inco testnet, and checke out the webpack solution provided by zama documentation but im encountering this problem:
./node_modules/fhevmjs/lib/web.js:7344:0
Module not found: Can't resolve 'tfhe_bg.wasm'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./src/utils/fhevm.js
./pages/join/[id].tsx
Although I tried updating the webpack:
const path = require('path');
module.exports = {
// entry: './src/index.js',
// output: {
// filename: 'main.js',
// path: path.resolve(__dirname, 'dist'),
// },
// module: {
// rules: [
// {
// test: /\.tsx?$/,
// use: 'ts-loader',
// exclude: /node_modules/,
// },
// ],
// },
resolve: {
// extensions: ['.tsx', '.ts', '.js'],
fallback: {
'tfhe_bg.wasm': require.resolve('tfhe/tfhe_bg.wasm'),
},
},
};
i still has the error though… any ideas about how to solve it?
the tech stack im using is nextjs w/ node v18.12.1