The error itself:
Error:java: invalid flag: --add-modules=javafx.fxml,javafx.graphics,javafx.controls,javafx.base
This error occurs when this javafx application is ran. I am running this project from a newly setup laptop and am not sure what i'm doing to cause this error, it works just fine on my desktop. I'm using intellij Community 2018.2 and JKD 10 on both my desktop and laptop.
Searching this error does not yield much information (to me) and i'm not really sure where to even start. I'm not using any fxml either if that makes a difference. Thanks for any help :)

