Skip to content

Newly created blank schematic fails to build because of unused variable #11916

Closed
@sis0k0

Description

@sis0k0

Bug Report or Feature Request (mark with an x)

- [X] bug report
- [ ] feature request

Scope

@schematics/schematics

Versions

@angular-devkit/schematics-cli v0.7.3

Repro steps

  1. Install the schematics CLI globally.
npm install -g @angular-devkit/schematics-cli
  1. Generate new schematics project with the blank schematic from @schematics/schematics.
schematics blank --name=test
  1. Navigate to the newly created project.
cd test
  1. Try to build the project.
npm run build

The log given by the failure

The build fails with the following TypeScript error:

src/test/index.ts:6:25 - error TS6133: 'options' is declared but its value is never read.

6 export function test(options: any): Rule {

Desired functionality

The newly created project should build successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions