guillaumepotier / validator.js

Powerful objects and strings validation in javascript for Node and the browser
http://validatorjs.org
MIT License
255 stars 39 forks source link

`"length" is read-only` error when imported #70

Open dallonf opened 3 years ago

dallonf commented 3 years ago

I see this happening in Vite and CodeSandbox, which I believe is based on Parcel. It seems to be OK in Webpack, though. I suspect the difference is whether the package is imported with ES Modules or in Strict Mode (which the former implies).