remy / nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development
http://nodemon.io/
MIT License
26.23k stars 1.72k forks source link

Import error when use type module on package.json #2217

Open Pnlvfx opened 2 weeks ago

Pnlvfx commented 2 weeks ago

This expression is not callable. Type 'typeof import("/Users/simo97/Desktop/web/tiktok-downloader/node_modules/nodemon/index")' has no call signatures.ts(2349)

I'm using latest version but it happeng from 3.1.0, as no one has reported it before, I will do it.

Pnlvfx commented 2 weeks ago

Typescript tell you to use nodemon.default, but then when starting nodemon, node will throw an error as nodemon.default is not a function, so there is something wrong between types and export

github-actions[bot] commented 2 days ago

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