vercel / micro

Asynchronous HTTP microservices
MIT License
10.59k stars 459 forks source link

NPM registry incorrect? #467

Closed oddlytimbot closed 1 year ago

oddlytimbot commented 2 years ago

Hi there, thanks for this fine tool. I'm wondering if the version in the NPM registry is not actually 9.4.1? I ask because after installation I'm having trouble using Micro in my ESM module. _Error [ERR_REQUIRE_ESM]: require() of ES Module /......../index.js from /..../nodemodules/micro/lib/handler.js not supported.

I read in other open issues that 9.4.1 was having some problems with ESM modules. Was the registry reverted?

Thanks again.

leerob commented 1 year ago

The code has been significantly changed with v10. Please reopen or create a new issue with a reproduction is you are still seeing this issue on v10. Thanks!