Skip to content

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

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
panpan-lin opened this issue Oct 7, 2018 · 1 comment · Fixed by #161 or #162
Closed

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

panpan-lin opened this issue Oct 7, 2018 · 1 comment · Fixed by #161 or #162

Comments

@panpan-lin
Copy link
Contributor

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

@carbon-bot
Copy link
Contributor

🎉 This issue has been resolved in version 1.8.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants