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

Class type error started occurring in version 1.0.10. #2159

Closed
shiraishi-yuma opened this issue Dec 1, 2022 · 2 comments
Closed

Class type error started occurring in version 1.0.10. #2159

shiraishi-yuma opened this issue Dec 1, 2022 · 2 comments
Labels

Comments

@shiraishi-yuma
Copy link

After updating to version 1.0.10, I am getting the following error.

Type '{ class: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  Object literal may only specify known properties, and 'class' does not exist in type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.ts(2322)

image

When I reverted back to version 1.0.9, the error was resolved.

This appears to be caused by importing '@storybook/vue3'.
Excluding the story file in tsconfig.json solves this problem.

tsconfig.json

{
  "exclude": [
    "**/*.stories.ts"
  ]
}

However, I would like to solve this problem, because this way, types does not work in the story files.

@johnsoncodehk
Copy link
Member

Please upgrade to storybook v7, see storybookjs/storybook#18323.

@shiraishi-yuma
Copy link
Author

Thank you @johnsoncodehk !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants