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

Unexpected result when upgrading to v12 #2032

Open
bensampaio opened this issue Sep 16, 2022 · 3 comments
Open

Unexpected result when upgrading to v12 #2032

bensampaio opened this issue Sep 16, 2022 · 3 comments

Comments

@bensampaio
Copy link

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.

@sebastian-aranda
Copy link

sebastian-aranda commented Sep 21, 2022

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].

@bensampaio
Copy link
Author

In the meantime I found this solution: #1993.

@premsai2030
Copy link

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

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

No branches or pull requests

3 participants