feat(compiler): A better error message for invalid selectors