Skip to content
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

fix: tell bundlers to return false for node dns module #163

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Dec 11, 2020

Silences this sort of warning which people report as an error:

98% after emitting CopyPlugin

 WARNING  Compiled with 1 warning                                         21:06:05

 warning  in ./node_modules/multiaddr/src/resolvers/dns.js

Module not found: Error: Can't resolve 'dns' in '/home/david/dev/group/node_modules/multiaddr/src/resolvers'

Closes #156

Silences this sort of warning which [people report as an error](ipfs/js-ipfs#3441):

```
98% after emitting CopyPlugin

 WARNING  Compiled with 1 warning                                         21:06:05

 warning  in ./node_modules/multiaddr/src/resolvers/dns.js

Module not found: Error: Can't resolve 'dns' in '/home/david/dev/group/node_modules/multiaddr/src/resolvers'
```
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! ❤️ This also fixes #156

@vasco-santos vasco-santos merged commit 0ac20ba into master Dec 11, 2020
@vasco-santos vasco-santos deleted the fix/dns-module-warning branch December 11, 2020 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile problem when using latest multiaddr in a browser app
2 participants