Code Monkey home page Code Monkey logo

Comments (9)

acrisci avatar acrisci commented on May 23, 2024

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.

martpie avatar martpie commented on May 23, 2024

mmmh, ok, I'll check how GPMDP did it 👍

from mpris-service.

martpie avatar martpie commented on May 23, 2024

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.

martpie avatar martpie commented on May 23, 2024

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.

martpie avatar martpie commented on May 23, 2024
resolve: {
  alias: {
    jsbi: path.resolve(__dirname, 'node_modules', 'jsbi', 'dist', 'jsbi-cjs.js')
  }
},

seems to fix it 🤔

from mpris-service.

acrisci avatar acrisci commented on May 23, 2024

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.

martpie avatar martpie commented on May 23, 2024

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 for mpris-service or node-dbus-next.

from mpris-service.

acrisci avatar acrisci commented on May 23, 2024

@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.

rapiz1 avatar rapiz1 commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.