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

Module not found: Error: Can't resolve 'dgram' OR dgram.createSocket is not a function #50

Open
denwist opened this issue Nov 16, 2021 · 0 comments

Comments

@denwist
Copy link

denwist commented Nov 16, 2021

Hello!
After installing this module, graylog2 ran into a problem.
After npm i graylog2 was building nodejs 16.13.0 and getting Module not found: Error: Can't resolve 'dgram'
dgram

Then found a solution by adding to webpack.mix.js
mix.webpackConfig ({
node: {
fs: 'empty',
dgram: 'empty',
}
});
The build error did not appear anymore. but when using the graylog2 module itself in my project another error occurred: "dgram.createSocket is not a function"
dgram createSocket is not a function

How can you solve these problems in order to use this module by means of the front?

"vuex": "3.5.1",
"webpack": "4.44.2",
"vue": "2.6.10"
nodejs: 16.13.0

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

No branches or pull requests

1 participant