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

specialChars object is undefined when imported #593

Closed
mkapal opened this issue Mar 18, 2021 · 1 comment · Fixed by #596
Closed

specialChars object is undefined when imported #593

mkapal opened this issue Mar 18, 2021 · 1 comment · Fixed by #596
Labels
bug Something isn't working released

Comments

@mkapal
Copy link

mkapal commented Mar 18, 2021

  • @testing-library/dom version: 7.30.0
  • @testing-library/user-event version: 13.0.1
  • typescript version: 4.2.3

index.ts:

import { specialChars } from "@testing-library/user-event";

console.log(specialChars);

What happened:

  • TypeScript error: TS1361: 'specialChars' cannot be used as a value because it was imported using 'import type'.
  • Console log returned undefined

Reproduction repository: https://codesandbox.io/s/unruffled-river-ps0i7

Problem description:
When I try to import specialChars from @testing-library/user-event, its value is undefined.

@ph-fritsche ph-fritsche added the bug Something isn't working label Mar 18, 2021
@github-actions
Copy link

🎉 This issue has been resolved in version 13.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants