honojs / middleware

monorepo for Hono third-party middleware/helpers/wrappers
https://hono.dev
391 stars 138 forks source link

Typesript import failed #593

Open Mullayam opened 2 months ago

Mullayam commented 2 months ago

image

Meess commented 2 months ago

I don't think this has to do with Hono but with your bundler / packagemanger. I think your current file has the .js extension while your bundler recognises that as a CommonJS file, you should call it .mjs so the bundler recognises it as a ECMScript module which allows you to import other modules.