Comments (6)
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.
Also I noticed that 2.15.2 is out, will release a new version soon
from scala-js-momentjs.
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.
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:
- you just migrate on fresher facade version (which I'll release in 30 min). But this will break again when new moment comes out.
- 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.
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.
Awesome, works :) Thanks for the quick response!
from scala-js-momentjs.
Related Issues (13)
- Add tz method to Date trait HOT 2
- Release version 0.2.0 HOT 15
- Bump moment to 2.15.2
- Version for scala 2.12.0 HOT 3
- Wrapper for use in shared JS/JVM projects? HOT 5
- Compatibility with scalajs-bundler? HOT 2
- Unable to obtain timezone data HOT 3
- Factory that takes object with unit values HOT 3
- bump to scala 2.13 compiler HOT 1
- Bump to scala.js 1.0.0 HOT 2
- High security vulnerabilities in versions 1.0.1 to 2.29.3 HOT 3
- years -> year, months -> month
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 scala-js-momentjs.