-
Notifications
You must be signed in to change notification settings - Fork 12k
bug: ng g c SomeComponent
fails with "Invalid rule result: Function()."
#11754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I also get this behaviour with node versions 10.6.0 and 10.7.0. |
Found a "dirty" work-around.
Then
It produced the component files, then I flashed back the changes in package.json. |
I think this is related, but not quite a duplicate of #11663. |
this error comes because of the version mismatch of your project and your system so use following command to execute
where 6.0.8 is the version of angular of my project |
@nitinprajapati1404 Perhaps that is also the case. However, in case I was unclear, it was not the case for me. I switched to and from the versions, kept them at the same version meticulously. The problem has not manifested for a long while now. Thus I close it now. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report
Command (mark with an
x
)Versions
node: 10.8.0
npm: 6.2.0 or 6.3.0
ng: 6.0.4
ng CLI: 6.0.8 or 6.1.2
OS: linux x64_86 (Linux Mint 19 or 18)
Due to a hard limitation, I cannot upgrade from Angular 6.0.4 for the time being.
Repro steps
ng g c SomeComponent
The log given by the failure
The CLI tool returns unsuccessfully with:
Desired functionality
Would like to generate a new component with the CLI tool, not manually.
Was able to create a new component with NG CLI 6.0.4.
Mention any other details that might be useful
n/a
The text was updated successfully, but these errors were encountered: