Closed ankurparihar closed 2 months ago
I've not tried it personally (and am on mobile ATM) but have you tested --ext="*"
?
Thanks for reverting, tried with * but it crashed
> nodemon --ext `*` start
[nodemon] 3.1.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: README.md
[nodemon] starting `node css-only-infinite-scroll node_modules nodemon.json package-lock.json package.json start`
node:internal/modules/cjs/loader:1051
throw err;
^
Error: Cannot find module '/home/ankur/workspace/codepen/css-only-infinite-scroll'
at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
at Module._load (node:internal/modules/cjs/loader:901:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v20.9.0
[nodemon] app crashed - waiting for file changes before starting...
Tried with .
and it worked for all files
> nodemon --ext . start
[nodemon] 3.1.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: (all)
[nodemon] starting `live-server . start`
Serving "." at http://127.0.0.1:8080
Ready for changes
Change detected css-only-infinite-scroll/hello.json
[nodemon] restarting due to changes...
[nodemon] starting `live-server . start`
Serving "." at http://127.0.0.1:8080
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up. Thank you for contributing <3
@ankurparihar just confirming, you've got a work around right (so I can mark as closed)?
I wouldn't have expected the crash the way you were seeing, so I might investigate this all the same.
hi @remy , we've got workaround, closing this
Hey
I cannot find any documentation for nodemon, wanted to know what are the options supported by
--ext
flag?I wanted to enable nodemon for all the files regardless of the type.