stencil icon indicating copy to clipboard operation
stencil copied to clipboard

bug: (reopen #2560) Readme changes in watch mode don't trigger docs-json

Open seanwuapps opened this issue 3 years ago • 1 comments

Prerequisites

Stencil Version

2.17.4

Current Behavior

Similar to https://github.com/ionic-team/stencil/issues/1822#issuecomment-636132747 and #2560 I am experiencing the same problem in v2.17.4

Expected Behavior

Whenever I update the readme file the json file should update.

Steps to Reproduce

  1. Create new project using the starter template
  2. Enable docs-json
  3. stencil build --dev --watch --docs
  4. Update readme
  5. Update usage
  6. Observe no change

Code Reproduction URL

https://github.com/seanwuapps/stencil-docs-json-watch-bug

Additional Information

No response

seanwuapps avatar Sep 02 '22 02:09 seanwuapps

@seanwuapps Thanks for logging this issue and providing a reproduction repo and steps! Also, thanks for linking some older issues related to this same problem, it's unfortunate to see this is still an issue. I was able to confirm in your reproduction, so I'll get this labeled for our team to take a look at! Thanks again!

tanner-reits avatar Sep 02 '22 15:09 tanner-reits

i stuck now in the same situation. i need the docs-json for storybook docs and in dev-mode it isn't possible to generate the docs-json. its only possible to run stencil build --docs-json docs.json before stencil build --dev --watch to get the infos in dev-mode. is it possible to get this fixxed?

cheers

dutscher avatar Nov 28 '22 14:11 dutscher

Watching this one intently 🙏 👀 as I just ran into it again, thanks @seanwuapps for keeping up with it!

snaptopixel avatar Feb 07 '23 17:02 snaptopixel