Giter Site home page Giter Site logo

Missing JS library about scala-js-momentjs HOT 6 CLOSED

vpavkin avatar vpavkin commented on August 15, 2024
Missing JS library

from scala-js-momentjs.

Comments (6)

vpavkin avatar vpavkin commented on August 15, 2024

Hi @mrbech. This happened to me as well. Do you have explicit jsDependency on moment.js in your build?
I would suggest trying to set versions explicitly in dependsOn clause, like this:

val momentVersion = "2.15.1"
 jsDependencies += 
      "org.webjars.npm" % "moment" % momentVersion
        / s"$momentVersion/moment.js"
        minified s"$momentVersion/min/moment.min.js"

from scala-js-momentjs.

vpavkin avatar vpavkin commented on August 15, 2024

Also I noticed that 2.15.2 is out, will release a new version soon

from scala-js-momentjs.

mrbech avatar mrbech commented on August 15, 2024

I have no explicit jsDependency on moment.js in my build, was not an issue earlier. Do I need one now?

from scala-js-momentjs.

vpavkin avatar vpavkin commented on August 15, 2024

issue is that for some reason, latest moment.js is always downloaded along with the version specified in the facade. When facade is not on the latest version, it means that there are two versions downloaded and ScalaJS can't really choose.

I see two options here:

  1. you just migrate on fresher facade version (which I'll release in 30 min). But this will break again when new moment comes out.
  2. you specify moment version explicitly and add an explicit dependency (I do it this way in my work project). This will not break.

I will investigate if anything else can be done here, but this won't be quick.

from scala-js-momentjs.

vpavkin avatar vpavkin commented on August 15, 2024

Just released 0.3.3 based on 2.15.2 to sonatype, should be on maven soon. Should fix your problem.

I think I see the cause in facade's build.sbt, will check it after work :)

from scala-js-momentjs.

mrbech avatar mrbech commented on August 15, 2024

Awesome, works :) Thanks for the quick response!

from scala-js-momentjs.

Related Issues (13)

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.