Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#474·micro

v10 broken on windows

Author: t8gCreated Jan 14, 2023Updated Jan 14, 2023

Running micro on windows fail with

image

I think it's due to the usage of import(file) in handler.ts. It should be fixed with the usage of pathToFileURL https://nodejs.org/api/url.html#urlpathtofileurlpath

import(pathToFileURL(file).href)

Thanks for your work on this package !

Source: vercel/micro

View original on GitHubView discussion on GitHub