bit icon indicating copy to clipboard operation
bit copied to clipboard

Block comments in proptypes and files break Properties Table

Open blankenshipd001 opened this issue 5 years ago • 1 comments

Describe the bug

When using block comments in the propTypes or within other files in the component the Properties table fails to show up.

/** this is a valid comment in propTypes */

/**
  * This style of comment breaks the Properties table
  */ 

We have a components file outside of the main component and using block comments on the function also broke the table.

Steps to Reproduce

  1. Add block comments to the propTypes
  2. Look for the Properties Table
  3. Add block comment to an additional file (helper component) on the exported function1.
  4. Look for the Properties Table

Expected Behavior

Properties table should display even when using block comments.

Screenshots, exceptions and logs

If applicable, add screenshots, exceptions, and logs to help explain your problem.

Specifications

  • Bit version: 0.0.469
  • Workspace type: harmony
  • Node version: 4.17.3
  • npm / yarn version: npm: 6.14.13
  • Platform: Mac

for harmony workspace

  • relevant env : react
  • relevant aspects

Additional context

Add any other context about the problem here.

blankenshipd001 avatar Jul 29 '21 16:07 blankenshipd001

This has been resolved in the new component-schema feature that drives the api-ref documentation page. closing the issue, as its irrelevant.

itaymendel avatar Mar 07 '23 07:03 itaymendel