-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
getmac fails on electron as electron doesn't support editions #46
Comments
Which bundler are you using? |
The latest npm package: 1.4.6 |
I have the same problem |
me too,have you solved it? |
Does electron now use webpack? |
To be clear, the issue is not ours. The issue is with whatever bundler is being used. The bundler must add support for the editions format. Details here: bevry/editions#24 |
I would like to ask if this problem has been solved? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when i build electron , it occurs a warning:
WARNING in ./~/extract-opts/index.js
3:63-70 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
The code is :
const getmac = require('getmac')
module.exports = function () {
getmac.getMac((err, macAddress) => {
if (err) console.log(err)
console.log(macAddress, '>>>>>>>>>>>>>')
global.statisticInfo = {
...global.statisticInfo,
macAddress: macAddress || 'none'
}
})
}
but when i run electron locally, it works well.
what's the problem???
The text was updated successfully, but these errors were encountered: