builder-vite: Storybook doesn't display Docs page

MDX story is not rendering for 0.1.3 version. I see these two messages in console:

render was not supported :( !
renderToDOM was not supported :( !

MRP is available here https://github.com/morewings/forge/tree/master/packages/library-vite

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (11 by maintainers)

Most upvoted comments

I was able to work around the issue in your repo by adding this to the top level package.json:

"resolutions": {
    "@storybook/csf-tools": "6.4.0-beta.20"
  }

This is only necessary until the official release of 6.4.0, which would then satisfy the semver range specified by storybook-builder-vite.

Note also, there are some ^^ in the package.json of your reproduction. Also, having older versions of storybook in library-cra could cause problems if their versions are hoisted to the root, so you might want to consider upgrading storybook in lock step between all your workspaces.

Oh I see in your reproduction that you have. Hmmmmm. I’ll take a look. This should have been fixed in 0.1.22. maybe try clearing your node_modules and browser cache, just in case?

This was a clean installation today, I rimraf node_modules a few times whilst getting things up and running, and have cache disabled in my browser when dev tools is open

Yes, that’s a separate problem, unfortunately. https://github.com/eirslett/storybook-builder-vite/issues/103

This issue is an unfortunate consequence of how beta versions work in semver, combined with the loose coupling of packages across the storybook ecosystem. Once 6.4.0 is released, it will start to work again.

The only other thing I can think to do is to create a peer dependency on @storybook/csf-tools, but that’s kind of a bummer too. Maybe enough people are having this issue that it would be worth it to avoid confusion, though…

I try

"resolutions": {
    "@storybook/csf-tools": "6.4.0-beta.20"
  }

but it had no effect.

image

However,My project is nothing different,it works normal. I don’t know why.