Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Declaration file for module #90

Description

@ashishpatel1992

Describe the bug

Getting following error on running yarn storybook

 ERROR in /Users/ashish/components-storybook/src/stories/Checkbox.story.tsx(6,32)
      TS7016: Could not find a declaration file for module 'storybook-addon-smart-knobs'. '/Users/ashish/components-storybookbook/node_modules/storybook-addon-smart-knobs/dist/index.js' implicitly has an 'any' type.

Filecontents of line (6,32):

import { withSmartKnobs } from "storybook-addon-smart-knobs";

Steps to reproduce the behavior

  1. Install yarn add -D storybook-addon-smart-knobs
  2. add decorator to storiesOf as .addDecorator((getStory)
  3. yarn storybook-web
  4. See error

Expected behavior

Should run and display knobs

Environment

  • OS: Mac 10.15.7
  • Node.js version: v14.16.0
  • NPM version: 6.14.11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions