etn-ccis / blui-react-component-library

Re-usable React components for use in Brightlayer UI applications
BSD 3-Clause "New" or "Revised" License
17 stars 10 forks source link

mdx-js version(s) 3 breaks dev doc build #878

Closed JeffGreiner-eaton closed 1 month ago

JeffGreiner-eaton commented 6 months ago

Describe the bug / expected behavior

This was found during a dependency update PR. https://github.com/etn-ccis/blui-react-component-library/pull/876 Not sure if this should be a bug or more of enhancement

The update was updating mdx-js/loader to version 3.0.1 and this alone was breaking change. I tested with updating the other mdx-js packages but it continued breaking other items in theme demos. At the moment not sure if its just a compatibility issue with react or other packages.

image image

Locally I tested using these versions: "@mdx-js/loader": "^3.0.1", "@mdx-js/mdx": "^3.0.1", "@mdx-js/react": "^3.0.1",

What are the steps to reproduce?

  1. Go to...
  2. Click on...

Screenshots / Screen recording

Code snippet / Link to minimum reproduction example

CODE HERE

Your environment information

Suggested fix

Anything else to add?

ektaghag-eaton commented 6 months ago

React native Dev Docs is using "@mdx-js/loader": "^3.0.1" and Vite. We can use the same configurations for React dev docs.