tsyringe icon indicating copy to clipboard operation
tsyringe copied to clipboard

Bugfix for ESM5 autoInjectable.

Open Saneesh-B opened this issue 2 years ago • 6 comments

Fix "Class constructor XXX cannot be invoked without 'new'" when in ESM5. This happens in Vue and React

Saneesh-B avatar Jan 16 '24 07:01 Saneesh-B

@microsoft-github-policy-service agree company="Identy"

Saneesh-B avatar Jan 16 '24 07:01 Saneesh-B

This is kind of a big change to the basic autoInjectable functionality, and introduces reflection via Proxy - I wonder if we should have a new decorator for the Vue/React case?

MeltingMosaic avatar Jan 18 '24 21:01 MeltingMosaic

@MeltingMosaic I wanted to make it generic to all frameworks. Im okay either way.

Saneesh-B avatar Jan 31 '24 15:01 Saneesh-B

Ideas on how to proceed ?

Saneesh-B avatar Feb 08 '24 13:02 Saneesh-B

Should be working in my fork: tsyringe-neo

risenxxx avatar Jul 19 '24 16:07 risenxxx

@risen228 , i have it working in my fork :). Just this is taking a whole lot of time to get some attention

Saneesh-B avatar Jul 20 '24 18:07 Saneesh-B