-
Notifications
You must be signed in to change notification settings - Fork 53
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
JSBI.BigInt is not a function /node_modules/dbus-next/lib/marshallers.js?:255:24 #59
Comments
Put this in your webpack config: resolve: {
alias: {
jsbi: path.resolve(__dirname, 'node_modules', 'jsbi', 'dist', 'jsbi-cjs.js')
}
}, |
Hi @acrisci Tony! Now in webpack.config.js :
But I still have the same error |
This fix has worked for 3-4 people. Make sure the path for the alias is actually pointing to an existing file in the node modules. |
The path sbi: path.resolve(__dirname, 'node_modules', 'jsbi', 'dist', 'jsbi-cjs.js') seems correct:
|
If you're using vue, I think the webpack config is a little different. module.exports = {
pluginOptions: {
electronBuilder: {
chainWebpackMainProcess: config => {
config.resolve.alias.set('jsbi', path.join(__dirname, 'node_modules/jsbi/dist/jsbi-cjs.js'));
}
},
},
}; |
I think I might try to make JSBI optional so it never gets imported if you don't use it. |
f1e2b4a should make the alias not required if you don't use jsbi compatibility mode. Try that out and see if it fixes it. |
Just importing dbus-next in a new javascript file causes this error:
DBus.js :
How to solve the problem?
Marco
The text was updated successfully, but these errors were encountered: