[SOLVED] Network parameters react moralis

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.

You should remove the network property.

In order to send a transaction on goerli, you should make sure the user is connected to the network as that is the determinant for that.

@qudusayo thanks, problem solved.

1 Like