Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Watching of serve command doesn't seem to be recursive

See original GitHub issue

I am not sure if it is a bug (if recursive watching is intended to work), but I believe such feature would be useful.

$ tree docs
├── assets
│   ├── codedoc-bundle.entry.js
│   ├── codedoc-bundle.js
│   ├── codedoc-bundle.meta.json
│   └── codedoc-styles.css
├── dist
│   ├── api
│   │   └── index.html
│   ├── codedoc-bundle.entry.js
│   ├── codedoc-bundle.js
│   ├── codedoc-bundle.meta.json
│   ├── codedoc-styles.css
│   └── index.html
└── md
    ├── api
    │   └──

when I run codedoc serve, it doesn’t pickup changes in docs/md/api/ (it detects changes in docs/md/ correctly).

It’s possible I have it misconfigured, my config.ts (which works for serve and build, meaning it compiles and paths are correct):

import {configuration} from '@codedoc/core';

import {theme} from './theme';

export const config = /*#__PURE__*/configuration({
  theme,                                  // --> add the theme. modify `./theme.ts` for chaning the theme.

  page: {
    title: {
      base: 'Golden Gadget'               // --> the base title of your doc pages

  dest: {
    html: 'docs/dist',
    assets: 'docs/dist',
    bundle: '.',
    styles: '.',
    namespace: '/golden-gadget'


I don’t think I changed any other file (except index.tsx in content, but that should not be related, just the hamburger being opened by default).

If anyone encounters similar issue, here is my current workaround:

find docs/md | entr -r codedoc serve

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

mnncommented, Jun 11, 2020

Sorry, don’t have much free time now. Just quickly tested it on a fresh project (same directory structure as my original project), and change detection is working now 🙂. Thank you very much.

loreanvictorcommented, Jun 10, 2020

as part of this commit, this also should be fixed. the fix is deployed via the combination of @codedoc/core@0.2.0 and @codedoc/cli@0.2.0, and you should be able to update to it like this:

npm i -g @codedoc/cli@latest
codedoc update latest

in this update, tiered watching is used, and markdown files are now watched using node-watch, which should be able to properly watch recursive file changes on Linux machines as well. ts-node-dev is only used for watching TypeScript code, which should already be working properly with recursive watching even on Linux machines.

@mnn since I do not have a Linux machine for testing, I am going to keep this issue open for now until you confirm this update fixes the recursive watching issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - nodemon recursive watch issue? - Stack Overflow
I have installed nodemon using command:
Read more >
Recursive file watching broken on linux with Node >= 14 #1159
watch () when the recursive option is true. This is only an issue on Linux apparently. Though the exception is only thrown by...
Read more >
Is there a paging version of `watch`? - Server Fault
Now start your watch command. You can then use C-a <ESC> to page around the display. Unfortunately, the display doesn't refresh while in...
Read more >
Unison User Manual - UPenn CIS
Overview. Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be...
Read more >
Can scp create a directory if it doesn't exist?
-r Recursively copy entire directories. Note that scp follows symâ bolic links encountered in the tree traversal. .... Share.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found