Closed
Description
First off, great job on this repository @F1LT3R ! 👏
I'm having some issues in regards to using classes in the shared components-typescript
library.
If I add a class to the CompTwo.tsx
component:
class Test {
public prop: string;
constructor(v: string) {
this.prop = v;
}
}
I get the following error when starting app-typescript
:
Failed to compile.
./react-workspaces-playground/packages/components-typescript/src/CompTwo/CompTwo.tsx
Line 5:10: Parsing error: Unexpected token
3 |
4 | class Test {
> 5 | public prop: string;
| ^
6 | constructor(v: string) {
7 | this.prop = v;
8 | }
Is there a quick fix to this issue, or some configurations that I am not aware of?
Metadata
Metadata
Assignees
Labels
No labels