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

[question] how to consume libreact in TypeScript #9

Closed
ricardocasares opened this issue Aug 13, 2018 · 3 comments
Closed

[question] how to consume libreact in TypeScript #9

ricardocasares opened this issue Aug 13, 2018 · 3 comments

Comments

@ricardocasares
Copy link

Hi there! Thanks for this awesome library!
I might be missing something as when I try to import for example, router components, I'm getting:

Cannot find declaration file for module...

screen shot 2018-08-13 at 8 15 52 pm

When importing from src instead of lib I don't get this error, but parcel-bundler can't find the sources.

Any suggestions?

Cheers!

@streamich
Copy link
Owner

Unfortunately, currently TypeScript types are not exported, somebody has to enable "decalration": true in this config and make sure it works well.

@ricardocasares
Copy link
Author

Thanks!, I supposed was related to that, I'll try to add it and run some checks.

@streamich
Copy link
Owner

Cool, 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