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

Missing Typescript definitions for Placeholders #2515

Closed
Sysix opened this issue May 6, 2022 · 0 comments · Fixed by #2523
Closed

Missing Typescript definitions for Placeholders #2515

Sysix opened this issue May 6, 2022 · 0 comments · Fixed by #2523

Comments

@Sysix
Copy link

Sysix commented May 6, 2022

  • components: Placeholder, PlaceholderButton
  • reactstrap version #9.0.2
  • import method es`
  • react version #17.0.1
  • bootstrap version #5.1.3

What is happening?

Importing Placeholder and PlaceholderButton with Typescript is throwing errors.

What should be happening?

Normally Import like the other modules

Steps to reproduce issue

  1. Create .tsx file
  2. Use import {Placeholder, PlaceholderButton} from 'reactstrap';
  3. Try to Compile

Error message in console

ERROR in C:\......r.tsx
./.....r.tsx 4:37-48
[tsl] ERROR in C:\....r.tsx(4,38)
      TS2305: Module '"reactstrap"' has no exported member 'Placeholder'.

Code

Fork the link and update it to demonstrate your issue.
https://stackblitz.com/edit/reactstrap?file=Example.js

and/or add the code which causes the issue directly here

Thats sadly not a typescript setup. Try "Steps to reproduce"

BenJenkinson added a commit to BenJenkinson/reactstrap that referenced this issue May 19, 2022
davidacevedo pushed a commit to BenJenkinson/reactstrap that referenced this issue May 26, 2022
davidacevedo pushed a commit to BenJenkinson/reactstrap that referenced this issue May 27, 2022
davidacevedo added a commit that referenced this issue May 27, 2022
fix(#2515): Add missing Typescript exports for Placeholders
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

Successfully merging a pull request may close this issue.

1 participant