teafuljs / teaful

🍵 Tiny, easy and powerful React state management

Home Page:https://npm.im/teaful

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript error when building with microbundle

wh5938316 opened this issue · 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

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! 🤗