You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation on npm indicates that tree-shakeable ES imports should be done using: import isEmail from 'validator/es/lib/isEmail.js'. However, the es folder does not exist in the package. Only the path validator/lib/isEmail.js works.
Either the es folder should exist to support ES imports as documented, or the documentation should be updated to reflect the correct import path (validator/lib/isEmail.js).
The text was updated successfully, but these errors were encountered:
If I'm looking through the published files in NPM, I do see that file. It's not in the repo since it's generated upon preparing a release.
What is the error you are getting?
The documentation on npm indicates that tree-shakeable ES imports should be done using:
import isEmail from 'validator/es/lib/isEmail.js'
. However, the es folder does not exist in the package. Only the path validator/lib/isEmail.js works.Either the es folder should exist to support ES imports as documented, or the documentation should be updated to reflect the correct import path (
validator/lib/isEmail.js
).The text was updated successfully, but these errors were encountered: