I am getting this same error, running:
/**
* @title Contract Title
* @dev An ERC20 token implementation with permit functionality.
* @custom:dev-run-script scripts/deploy_with_web3.ts
*/
I have got this error and solved it before, but I forget how. However, running this code I am still getting the error:
You have not set a script to run. Set it with @custom:dev-run-script NatSpec tag.
According to the docs, it looks like this should work. So, I'm not sure what I'm missing. Any suggestions would be appreciated. Thanks!