developit / microbundle

📦 Zero-configuration bundler for tiny modules.
https://npm.im/microbundle
MIT License
8k stars 361 forks source link

ts file does not get compiled and I get Duplicate declaration error #996

Closed piguycs closed 1 year ago

piguycs commented 1 year ago

I also get the error Generated an empty chunk: "index" image

this in ./dist/index.d.ts image

./dist/client.js image

rschristian commented 1 year ago

Please provide a reproduction. This gives us nothing to go on.

Usually it means you've provided an input file with no content, hence, "empty chunk".

Edit: If this is your project, you're not exporting anything. Empty chunks are generated as there's nothing to use from this module. It's effectively empty.

piguycs commented 1 year ago

I realised the issue, I had removed the export at some point when reformatting my code. Thanks for your help and sorry for the trouble