Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Decoration support for Expo Web using node library in Yarn Workspaces

$
0
0

I have set up a yarn workspace with an expo app and a nodejs lib. This nodejs lib uses class-validator that uses js decorators to work.

I can import normal typescript objects from my lib but cannot import classes that use decorators.

Since decorators work inside the main project (even using class-validator) I am quite sure it is a problem when importing via Web pack.

It works fine when using only in android, but fails in expo Web.

Thanks in advance.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>