Hello and a happy and hopefully healthy 2022 to you all!
I am despirately trying to work with dates with timezone support in Realm functions. Unfortunately I always get the error “Intl is not defined”, meaning the node environment is lacking support of DateTime standard functions.
I`ve tried different polyfills via npm as a workaround, but without any luck.
Is there a security concern, which led you to disable / not support Intl in the functions environment or could this maybe be enabled in a future version of the functions?
Intl seems like a fairly common package and is supported by most browsers and by node since v6. What I’ve tried so far:
- Intl polyfill
- full-icu polyfill
If the issue could not be resolved, I’d have to look for other alternatives (lambda, netlify, etc.), but that would contradict the value of the MongoDB eco system. Especially since other packages are working just fine.
Could you please help me or point me in the right direction?
Thanks in advance!