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

Declaration file for module #90

Open
ashishpatel1992 opened this issue May 4, 2021 · 1 comment
Open

Declaration file for module #90

ashishpatel1992 opened this issue May 4, 2021 · 1 comment
Labels

Comments

@ashishpatel1992
Copy link

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
Copy link
Author

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";

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

1 participant