Caused by: java.io.IOException: Failed to load content of 'D:\github\trbot\frontend\index.html'. It is required to have 'D:\github\trbot\frontend\index.html' file when using client side bootstrapping

this error is thrown, when i run the application.
When the production mode is off, this does not happen.
But I cannot use jmix REST without production mode. What can i do?