Skip to content
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

[Bug] Not all constituents of type 'string | ClientApiReturnFn<StoryFnReactReturnType>' are callable. Type 'string' has no call signatures. #153

Open
JustFly1984 opened this issue May 27, 2021 · 0 comments
Labels

Comments

@JustFly1984
Copy link

Describe the bug

Typescript error

Steps to reproduce the behavior

import { storiesOf } from "@storybook/react"

import HBButton, { ButtonStyles, ButtonSizes } from "./HBButton"

storiesOf("HBButton", module)
  .addParameters({
    info: "Any info about the HBButton",
  })
  // Error on next line, cos string is not callable
  .addWithJSX("Primary (default)", () => (
    <HBButton text="Primary" buttonStyle={ButtonStyles.PRIMARY} />
  ))

Expected behavior

No errors

Screenshots and/or logs

Screen Shot 2021-05-27 at 9 48 08 PM

Screen Shot 2021-05-27 at 9 49 22 PM

Environment

  • OS: MacOSX BigSur
  • Node.js version: 16.1.0
  • NPM version: 7
  • Browser (if applicable): not applicable
  • Browser version (if applicable): not applicable
  • Device (if applicable): not applicable
  • Typescript version: 4.3.2

Additional context

Typescript version: 4.3.2

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

No branches or pull requests

1 participant