Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript error when building with microbundle #85

Open
wh5938316 opened this issue Mar 9, 2022 · 1 comment
Open

Typescript error when building with microbundle #85

wh5938316 opened this issue Mar 9, 2022 · 1 comment

Comments

@wh5938316
Copy link
Contributor

wh5938316 commented Mar 9, 2022

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

@aralroca
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants