addon-smart-knobs icon indicating copy to clipboard operation
addon-smart-knobs copied to clipboard

Declaration file for module

Open ashishpatel1992 opened this issue 4 years ago • 1 comments

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

ashishpatel1992 avatar May 04 '21 14:05 ashishpatel1992

this works and webpack doent fail anymore. But knobs are still not automatically detected. Any ideas why knobs are not working ?

// @ts-ignore
import { withSmartKnobs } from "storybook-addon-smart-knobs";

ashishpatel1992 avatar May 04 '21 15:05 ashishpatel1992