Skip to content

ng generate directive error #9351

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

Closed
nitz88 opened this issue Jan 24, 2018 · 8 comments
Closed

ng generate directive error #9351

nitz88 opened this issue Jan 24, 2018 · 8 comments

Comments

@nitz88
Copy link

nitz88 commented Jan 24, 2018

Versions

Angular CLI: 1.6.5
Node: 6.11.2
OS: win32 ia32
Angular: 5.1.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.5
@angular-devkit/build-otimizer: 0.0.41
@angular-devkit/core- 0.0.28
@angular-devkit/schematics: 0.0.51
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.5
@schematics/angular: 0.1.16
typescript: 2.4.2
webpack: 3.10.0

After updating to angular cli version to 1.6.5, we are getting below error while using below command.

Repro steps

ng g directive stylevalidator

Error:
Error: dryRunSink.commit(...).ignoreElements is not a function.
dryRunkSink.commit(...).ignoreElements is not a function.

Desired behavior

Should generate new directive named "stylevalidator"

@wehrstedt
Copy link

Same for me, had this error with version 1.5.3, then upgraded to 1.6.5, but the error is still the same
Angular CLI: (1.5.3) 1.6.5
Node: 8.9.1
OS: Windows 10

@michael-letcher
Copy link

ng generate service <name> dose not work either

Angular CLI: 1.6.5
Node: 6.11.2
OS: darwin x64
Angular: 5.2.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.5
@angular-devkit/build-optimizer: 0.0.41
@angular-devkit/core: 0.0.28
@angular-devkit/schematics: 0.0.51
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.5
@schematics/angular: 0.1.16
typescript: 2.6.2
webpack: 3.10.0

@ben-wall
Copy link

Error: dryRunSink.commit(...).ignoreElements is not a function
dryRunSink.commit(...).ignoreElements is not a function

updated my cli just a few hours ago

@ondrejsv
Copy link

ng generate component the same.

@raydawg2000
Copy link

ng generate module has the same error

@ghost
Copy link

ghost commented Jan 25, 2018

Does any one have solution for this, i too have same problem ?

Angular CLI: 1.6.5
Node: 9.4.0
OS: win32 x64
Angular: 5.1.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.5
@angular-devkit/schematics: 0.0.45
@ngtools/json-schema: 1.1.0
typescript: 2.4.2
webpack: 3.10.0

ng generate component routes/contacts

Error: dryRunSink.commit(...).ignoreElements is not a function
dryRunSink.commit(...).ignoreElements is not a function

@zdsantos
Copy link

I had this error with version 1.6.0 and now with 1.6.5 still the same.
.

@Brocco
Copy link
Contributor

Brocco commented Jan 25, 2018

This issue has been resolved, please see this comment: #9194 (comment)

I am closing and locking this issue to consolidate the conversation in the other issue.

@Brocco Brocco closed this as completed Jan 25, 2018
@angular angular locked as resolved and limited conversation to collaborators Jan 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants