addon-smart-knobs
addon-smart-knobs copied to clipboard
Declaration file for module
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
- Install
yarn add -D storybook-addon-smart-knobs - add decorator to
storiesOfas.addDecorator((getStory) yarn storybook-web- 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
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";