javivelasco / javivelasco/react-css-themr
Typescript compiler fails when using react css themr with error Default export of the module has or is using private name 'TReactCSSThemrTheme'
- Dominant language
- JavaScript
- Stars
- 589
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
Typescript Version : 2.4.2
React CSS Themr: 2.1.2
**Replication Steps**
1. Create a component that uses themr.
`themr('Identifier')(ComponentName);`
2. Run the Typescript compiler
It will throw the following error
` error TS4082: Default export of the module has or is using private name 'TReactCSSThemrTheme'.`
` error TS4082: Default export of the module has or is using private name 'ThemedComponentClass'.
`
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported TS4082 errors with TypeScript 2.4.2 and React CSS Themr 2.1.2 using the themr('Identifier')(ComponentName) example. Trace the public exports involving TReactCSSThemrTheme and ThemedComponentClass; the issue is done when the compiler no longer reports private-name errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100