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

[Bug]: 7.0.0-beta.24: addon-links TypeScript issues #20580

Closed
DannyJoris opened this issue Jan 11, 2023 · 1 comment
Closed

[Bug]: 7.0.0-beta.24: addon-links TypeScript issues #20580

DannyJoris opened this issue Jan 11, 2023 · 1 comment

Comments

@DannyJoris
Copy link

DannyJoris commented Jan 11, 2023

Describe the bug

Using Storybook addon-links v7.0.0-beta.24, I'm encountering 2 issues:

  1. LinkTo shows the following type error: JSX element type 'LinkTo' does not have any construct or call signatures.

Screenshot 2023-01-11 at 11 00 48 AM

  1. linkTo() gives the following error in Storybook:
(0 , _storybook_addon_links_react__WEBPACK_IMPORTED_MODULE_2__.linkTo) is not a function

Screenshot 2023-01-11 at 11 01 16 AM

To Reproduce

I created the app the following way:

  • Created a Next.js app with TypeScript: npx create-next-app@latest --ts
  • Inside the app folder I ran npx storybook@future init
  • Configured main.js to use nextjs as framework:
export default {
 ...
  "framework": {
    "name": "@storybook/nextjs",
    "options": {}
  }
}

System

Environment Info:

  System:
    OS: macOS 13.0.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
    npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm
  Browsers:
    Chrome: 108.0.5359.124
    Firefox: 108.0.1
    Safari: 16.1
  npmPackages:
    @storybook/addon-essentials: ^7.0.0-beta.24 => 7.0.0-beta.24
    @storybook/addon-interactions: ^7.0.0-beta.24 => 7.0.0-beta.24
    @storybook/addon-links: ^7.0.0-beta.24 => 7.0.0-beta.24
    @storybook/nextjs: ^7.0.0-beta.24 => 7.0.0-beta.24
    @storybook/react: ^7.0.0-beta.24 => 7.0.0-beta.24
    @storybook/react-webpack5: ^7.0.0-beta.24 => 7.0.0-beta.24
    @storybook/testing-library: ^0.0.14-next.1 => 0.0.14-next.1

Additional context

No response

@shilman
Copy link
Member

shilman commented Jan 24, 2023

Olé!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.32 containing PR #20671 that references this issue. Upgrade today to the @next NPM tag to try it out!

npx sb@next upgrade --prerelease

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

No branches or pull requests

3 participants