Skip to content

Unable to run storybook due to Typescript error in Terminal #158

Closed
@panpan-lin

Description

@panpan-lin

Detailed description

This is a bug or a general issue.

I am trying to run carbon-components-angular project itself. I was not able to run storybook, due to error in Terminal. I'm on the latest master, with the last commit being ef584a0

Steps to reproduce the issue

  1. Git clone the project
  2. run npm install
  3. run npm run storybook
  4. unable to run storybook, with the following error shown in Terminal:
ERROR in ./src/modal/modal.service.ts
[tsl] ERROR in /Users/panpanlin/git/carbon-components-angular/src/modal/modal.service.ts(89,109)
      TS1122: A tuple type element list cannot be empty.

Additional information

  • screenshot

screen shot 2018-10-07 at 18 18 02

Noticed in the screenshot that my Visual Studio Code editor is also complaining about the empty tuple type element for `buttons` on line 89 of the file `/src/modal/modal.service.ts`.
  • note
    As a workaround, I change buttons?: [] to buttons?: any in the offending line in the code base.

Not sure if it is related to: microsoft/TypeScript#6524

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