teaful icon indicating copy to clipboard operation
teaful copied to clipboard

Typescript error when building with microbundle

Open wh5938316 opened this issue 2 years ago • 1 comments

What version of this package are you using? 0.1.0 What operating system, Node.js, and npm version? macos, node v16.9.1, npm v8.3.0 What happened? When i build my module with microbundle, an error throwed: semantic error TS4023: Exported variable 'useFont' has or is using name 'useStoreType' from external module "teaful" but cannot be named. What did you expect to happen? This looks like causing by --declaration Maybe @babel/helper-split-export-declaration Are you willing to submit a pull request to fix this bug? I have no idea to solve this problem for the time being

my source code: teaful-debug.zip

wh5938316 avatar Mar 09 '22 03:03 wh5938316

What version of this package are you using? 0.1.0

@wh5938316 Try the last version 0.10.0. If you still don't get it, try the canary version 0.11.0-canary.1 that we are moving the whole project to TypeScript. And if it doesn't work either, we will try to fix it for 0.11.0. Thanks! 🤗

aralroca avatar Mar 12 '22 12:03 aralroca