bit icon indicating copy to clipboard operation
bit copied to clipboard

MDX error silenced on bit status

Open jonatankBIT opened this issue 3 years ago • 1 comments

If an .mdx file has issues (for example, wrongly importing a component), the overview fails to render, but bit status doesn't show any error why.

Steps to Reproduce

  1. Create a component.
  2. Try to wrongly import it on the mdx file.
  3. Start the server, and run also bit status.
  4. Bit status will show everything ok, while the UI server won't be able to render the mdx file.

Expected Behavior

I would expect to have bit status showing that the import failed, like it does on a .tsx file.

Screenshots, exceptions and logs

In the following screenshot, the component 'Mobile' doesn't exist.

image image image

Specifications

  • Bit version: 0.0.791
  • Workspace type: Harmony
  • Node version: 16.14.0
  • npm / yarn version:1.22.18
  • Platform: MacOs
  • relevant env: Community React, Community react native.

jonatankBIT avatar Jul 21 '22 11:07 jonatankBIT

@davidfirst didn't we handle this recently?

GiladShoham avatar Jul 21 '22 12:07 GiladShoham

Yes, this has been resolved a while ago. bit status shows warning if packages are missing from .mdx files.

davidfirst avatar Mar 01 '24 14:03 davidfirst