Encountered empty domain during validation

i am new to rasa . i got below error . error : “Encountered empty domain during validation.”

what is the primary reason for this error ?

i have provided my domain.yml file

domain.yml (95.4 KB)

If the domain.yml is not in the root directory of the project, this can cause the error you are seeing. If that’s the case, use the --domain option to specify the directory with the domain file.

My domain file is in root directory but I still facing same isssue

Add --domain domain.yml to the command line

added it but still got the same issue now suddenly , previously without this command itself it used to work