How can I implement decorator pattern in React with Vite? #19229
-
|
I keep getting errors like this I have tried setting up using babel config And I have set the experimental option to true Using these version of React and Vite I have been trying hard to do so. How can I make it work? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Project for reproduction: https://github.com/maifeeulasad/idb-test.git The library I am trying to import: https://github.com/maifeeulasad/idb-ts |
Beta Was this translation helpful? Give feedback.
-
|
Vite's support of ES Decorator is suck! Just use Parcel to save your life: https://github.com/idea2app/React-MobX-Bootstrap-ts |
Beta Was this translation helpful? Give feedback.
-
|
Resolved by enabling experimental decorators from typescript. Now it works. But vite should also add support for this. |
Beta Was this translation helpful? Give feedback.
Resolved by enabling experimental decorators from typescript. Now it works.
But vite should also add support for this.