react-styleguidist icon indicating copy to clipboard operation
react-styleguidist copied to clipboard

Unexpected result when upgrading to v12

Open bensampaio opened this issue 3 years ago • 1 comments
trafficstars

Current behavior

After upgrading to v12 it looks like something is wrong with the compilation of md files. The files seem to be picked up but nothing is rendered.

Screenshot 2022-09-16 at 10 06 31

There are no errors in the build and no errors on the JS console. There are just a few SASS deprecation warnings but those were already there before.

To reproduce

I would prefer to first know if this issue is known or if you have any tips. Mainly because I don't understand what causes it.

We are using dangerouslyUpdateWebpackConfig to change some things in the webpack config but even when we comment it out we still get the same result.

Expected behavior

We would expect the contents of the md file to be rendered just like on v11.

bensampaio avatar Sep 16 '22 09:09 bensampaio

I have the same problem, after upgrading to v12 I stopped seeing the content of my .md pages.

image

Here is part of my styleguide.config.js:

module.exports = {
  title: 'frontend',
  serverPort: 3001,
  require: [path.join(__dirname, 'src/index.css')],
  assetsDir: 'docsrc/assets',
  pagePerSection: true,
  tocMode: 'collapse',
  exampleMode: 'collapse', // 'hide' | 'collapse' | 'expand'
  usageMode: 'collapse', // 'hide' | 'collapse' | 'expand'm
  styleguideDir: 'docs',
  sections: [
    {
      name: 'Overview',
      content: 'docsrc/overview.md',
    },
  ]
}

Also I noticed the structure of the compiled documentation is different, now I have several .md files with alphanumerical names, e.g. 37aaa3d18e1458e1198f.md.

I'm using [email protected] wich requires [email protected].

sebastian-aranda avatar Sep 21 '22 16:09 sebastian-aranda

In the meantime I found this solution: https://github.com/styleguidist/react-styleguidist/issues/1993.

bensampaio avatar Sep 22 '22 08:09 bensampaio

@sebastian-aranda what version of react-styleguidist you have used ?

premsai2030 avatar Nov 29 '22 02:11 premsai2030