Hello @L-KH, it seems that your process file is not valid. First, I see that you have myfirstprocess.ts
. The file should be a JSON.
With the processes, you need to compile and then create them. The process file is a yaml
, and the result of the compilation is a JSON
.
You can use the following command to compile and create at the same time
mesg-cli process:create "$(mesg-cli process:compile YOUR_PROCESS_FILE.YML)"
Also, if you are developing with it, I highly recommend using the dev command that will compile, deploy, display the logs, and clean up when you exit your process.
mesg-cli process:dev YOUR_PROCESS_FILE.YML
Could you check that your process file is a valid yaml. The documentation display some ...
that shouldn’t be part of the file.
The error env variable PROVIDER_ENDPOINT must be set
is normal, this is because your process requires an env variable so you can fix this by appending the flag --env PROVIDER_ENDPOINT=your_provider_endpoint
and this will solve your issue.
We just released a tutorial about the processes. I recommend you to have a look at it https://blog.mesg.com/create-a-process-to-receive-an-email-when-an-erc20-transfer-occurs/.
I hope I was able to help 
Let me know if you have more issues