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

Not able to change a story in a static build #13032

Closed
tiavina-mika opened this issue Nov 6, 2020 · 5 comments
Closed

Not able to change a story in a static build #13032

tiavina-mika opened this issue Nov 6, 2020 · 5 comments

Comments

@tiavina-mika
Copy link

Nothing happen when clicking the stories in the side, the page does not change in the static build (after yarn build-storybook).
But when I refresh the page it works.

Here is the 6.0.27 repo: https://github.com/tiavina-mika/nextjs-typescript-storybook-boilerplate-demo/tree/feature/storybook-2.0.27

So I upgraded to 6.1.0-beta.3 with npx sb upgrade --prerelease , but it's show a blank page instead
the 6.1.0-beta.3 repo is there : https://github.com/tiavina-mika/nextjs-typescript-storybook-boilerplate-demo/tree/feature/storybook-2.1.beta

"typescript": "^4.0.5"
"next": "10.0.0",
"react": "17.0.1",
"@storybook/addon-actions": "^6.1.0-beta.3",
"@storybook/addon-essentials": "^6.1.0-beta.3",
"@storybook/addon-links": "^6.1.0-beta.3",
"@storybook/addon-viewport": "^6.1.0-beta.3",
"sb": "^6.0.27",
@glrodasz
Copy link

glrodasz commented Nov 8, 2020

I got the same issue upgrading from 6.0.26 to 6.0.28 it only happens with the static build. However, I tried to revert the changes even cleaning my yarn.lock file without any luck.

@shilman
Copy link
Member

shilman commented Nov 9, 2020

@glrodasz try yarn build-storybook --no-dll

@shilman
Copy link
Member

shilman commented Nov 9, 2020

@tiavina-mika when I use your 6.1-beta branch I see _jsx is not defined

Closing this as a duplicate to #12952

@glrodasz
Copy link

glrodasz commented Nov 9, 2020

@tiavina-mika
Copy link
Author

tiavina-mika commented Nov 9, 2020

@glrodasz thanks, it works for me.
But I've added this to .storybook/main.js too when I've upgrade to prelease version:

  babel: async (options) => ({
   ...options,
    plugins: [
      ...options.plugins,
      '@babel/plugin-transform-react-jsx'
    ]
  }),

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

No branches or pull requests

3 participants