Hello all,
I am using Vite to do a react app with Moralis, and so i use react moralis to execute some functions and do some api calls.
I encounter no problems using ‘npm run dev’, but when running ‘npm run build’, i have this message:
Object literal may only specify known properties, and ‘network’ does not exist in type ‘Web3ExecuteFunctionParameters’.
and my frontend code:
What should i modify to remove this error?
I appreciate all your answers in advance.