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

blocks.js does not have type definition #156

Closed
pocka opened this issue Jun 10, 2022 Discussed in #155 · 0 comments
Closed

blocks.js does not have type definition #156

pocka opened this issue Jun 10, 2022 Discussed in #155 · 0 comments
Labels
category: bug Something isn't working

Comments

@pocka
Copy link
Collaborator

pocka commented Jun 10, 2022

When importing storybook-addon-designs/blocks from TypeScript files, TSC emits an error about missing type definition file.

Discussed in #155

Originally posted by pattimcletchie June 10, 2022
I am trying to just use the "figma block" like, https://pocka.github.io/storybook-addon-designs/?path=/docs/docs-advanced-usage--embed-multiple-designs#doc-blocks this example but when I use this import import { Figma } from "storybook-addon-designs/blocks"; I get a type error in my .stories.tsx page

Type error: Cannot find module 'storybook-addon-designs/blocks' or its corresponding type declarations.

Any thoughts on how best to use the Figma block when not using story decorator params?

We are using Storybook v6.5.8 and "storybook-addon-designs": "^6.2.1"

@pocka pocka added the category: bug Something isn't working label Jun 10, 2022
@pocka pocka closed this as completed in 4bf0125 Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant