New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser support without DNS check #26
Comments
Why don't you just ignore dns in your bundler ? |
Ah, managed to get it to work according to hapijs/joi#748 (comment) Perhaps worth mentioning in the docs? Thanks for the hint! |
This seems like something that would surely be better fixed in the library itself, rather than polluting bundler configs? |
But this workaround will not work with create-react-app |
Workaround for Setup And then two ways:
Script source can be empty: module.exports = {}; But also you could re-export dns mocks if needed. |
Could someone perhaps add clearer instructions to this workaround? Perhaps the image tuchk4 provided better showed what he was describing but now the image is no longer working. I am confused about:
? Any help would be much appreciated. Thank you. |
Here's my solution with create a folder
add file package.json to folder containing:
Open your package.json and add following line to the dependencies
run "npm install" |
FWIW we are currently working on removing the |
@egonvb can you please make it more clear . I am stuck here |
hi,
please explain your problem in an email. i'll see if i can help you. it's
been a while, the reply on github was 9 months ago ;-)
regards,
Egon Verbakel
Op 14 jan. 2018 11:00 a.m. schreef "Arushi Bajpai" <notifications@github.com
:
@egonvb <https://github.com/egonvb> can you please make it more clear . I
am stuck here
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABbFrWxZnMBtEmg-c-3beEuZikbQgZg_ks5tKdAhgaJpZM4JoQs0>
.
|
Version 3 of this package no longer does the DNS checking, so that dependency is removed entirely. Let me know if you have trouble using version 3. |
@sleepydistrict can you confirm what version of isemail you're using? I just want to make sure this isn't an ongoing issue with version 3. |
Sure seems to me like it's a problem that if you add isemail to your package.json, install it, and use it in your node code, it... makes your entire node app unusable |
I would suggest opening a new issue with some helpful details if this is an
accurate description of your experience.
On Tue, Aug 6, 2019 at 4:46 PM Benjamin Wheeler ***@***.***> wrote:
Sure seems to me like it's a problem that if you add isemail to your
package.json, install it, and use it in your node code, it... makes your
entire node app unusable
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26?email_source=notifications&email_token=AC4XQO2QL2PQOZLLITHVEMLQDIEMPA5CNFSM4CNBBM2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3WYVCQ#issuecomment-518883978>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC4XQOYGMWJUII2BVT64KO3QDIEMPANCNFSM4CNBBM2A>
.
--
None
|
Fair! |
Hey!
This lib comes out on top when searching npms.io for email validators. However, due to the dependency on node's
dns
, we're unable to use it in the browser. In my case, I only want to use the simple, synchronous validation without the DNS check.Would you guys consider not requiring
dns
for the synchronous case?The text was updated successfully, but these errors were encountered: