storybookjs / addon-svelte-csf

[Incubation] CSF using Svelte components.
MIT License
103 stars 32 forks source link

Object literal may only specify known properties, and '"args"' does not exist in type 'StoryProps' #196

Open gzimbron opened 2 months ago

gzimbron commented 2 months ago

Hello, I'm using Storybook in a new project, and I'm getting this typescript error on vscode:

Object literal may only specify known properties, and '"args"' does not exist in type 'StoryProps'

CleanShot 2024-08-02 at 09 31 29

Dependencies versions:

    "@storybook/addon-essentials": "8.2.7",
    "@storybook/addon-interactions": "8.2.7",
    "@storybook/addon-links": "8.2.7",
    "@storybook/addon-styling-webpack": "^1.0.0",
    "@storybook/addon-svelte-csf": "^4.1.4",
    "@storybook/blocks": "8.2.7",
    "@storybook/svelte": "8.2.7",
    "@storybook/sveltekit": "8.2.7",
    "@storybook/test": "8.2.7",

I have another project, and this warning doesn't appear, versions in other project are:

        "@storybook/addon-essentials": "^7.6.16",
        "@storybook/addon-interactions": "^7.6.16",
        "@storybook/addon-links": "^7.6.16",
        "@storybook/addon-svelte-csf": "^4.0.0",
        "@storybook/blocks": "^7.6.16",
        "@storybook/svelte": "^7.6.16",
        "@storybook/sveltekit": "^7.6.16",
        "@storybook/testing-library": "^0.0.14-next.2",

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots and/or logs

If applicable, add screenshots and/or logs to help explain your problem.

Environment

is-sematell commented 1 month ago

Facing the same issue

is-sematell commented 3 days ago

I've updated all packages to the latest versions, and this issue does not reproduce anymore