Comments (9)
This is probably a webpack configuration error. I can try to help but my knowledge of webpack is limited. I can reproduce this on martpie/museeks#475 .
I can get it to work on the webpack quick start demo just fine with electron 4.0.1.
I can't see anything immediately wrong with mpris-service or dbus-next. JSBI.BigInt should definitely be a function from what I see there.
The mpris-service library will always use JSBI, so node version isn't an issue.
I've had to do weird things for webpack before to workaround their bugs, so I'll try some stuff later.
from mpris-service.
mmmh, ok, I'll check how GPMDP did it 👍
from mpris-service.
I can confirm this is Webpack specific. I am doing researches with either require().default
is the way to go or not.
edit: probably not
from mpris-service.
I think I found something interesting. The mjs
file of jsbi
seems to be imported instead of the commonJS one. Still investigating.
from mpris-service.
resolve: {
alias: {
jsbi: path.resolve(__dirname, 'node_modules', 'jsbi', 'dist', 'jsbi-cjs.js')
}
},
seems to fix it 🤔
from mpris-service.
Ok great. If you learn more and want to do a doc update or fix on the libraries that would be good. Otherwise it looks like just a normal weird webpack error.
from mpris-service.
I will close this. I still have two issues:
- I still have a
Error: unknown bus address
that I am not sure how to fix.[email protected]
worked well 🤔 - it also throws
UnhandledPromiseRejectionWarning: Unhandled promise rejections are deprecated. Inthe the future, promise rejections that are not handled will terminate the Node..js process with a non-zero code
, I will see if I can submit a patch formpris-service
ornode-dbus-next
.
from mpris-service.
@martpie thanks a lot, I just used this on an implementation for another player (nuclear). I will add this fix to the documentation.
from mpris-service.
Any update on this? Why will this happen?
I have the same issue but the solution above did not work.
#42
from mpris-service.
Related Issues (20)
- Error: The module was compiled against a different Node.js version using NODE_MODULE_VERSION 48. HOT 6
- Metadata don't work HOT 5
- CanGoPrevious & CanGoNext variable updating but mpris is not HOT 2
- Add CI HOT 5
- Sending/Receiving negative numbers HOT 2
- Player implementation status
- Support multiple instances
- DBus connection error handling
- Documentation hosting HOT 1
- Move to dbusjs organization HOT 2
- TypeError: JSBI.BigInt is not a function HOT 6
- Media Keys stop working after closing window HOT 4
- Got error when detecting the player status using other scripts HOT 3
- TypeError: JSBI.BigInt is not a function HOT 4
- Changing property results in EPIPE errors HOT 3
- use latest dbus-next HOT 4
- Typo: `that` instead of `this` HOT 1
- Error while executing `GetAll` on `org.freedesktop.DBus.Properties`
- Can I use this to discover other players? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpris-service.