Because of the limited support of nodejs compatibility it is little difficult to work with and takes away the benefit and freedom of working with nodejs altogether.
So far I love the cf workers but having a list of supported node modules will be super helpful.
Given the sheer number of node modules that exist (over 1 million in 2019) maintaining a single list of supported packages is probably impossible (and certainly impractical.)
@anon9246926 thanks for replying, yes I read the link you provided but the issue remains the same, right? It is more of like a hit-and-miss situation, even if you enable node compatibility still you can’t be sure whether say xyz module will work this the cf workers.
… some, which implement fs, http/net, or access the browser window do not directly translate…
The trick is to know whether the module uses any of the above, or something listed outside the documentation. Looking through the cloudflare-workers topic on GitHub could also help.
TBH I’ve never had much issue with compatibility save for the odd module that used fs.