I use the webjar react-0.12.2 in my Play Framework 2.3 project, and I've depended on it like so:
libraryDependencies ++= Seq(
"org.webjars" %% "webjars-play" % "2.3.0-2",
"org.webjars" % "react" % "0.12.2"
)
If I try to access 'react.js' though, like in the following example, I get an error due to there being multiple matches for react.js:
<script type='text/javascript' src='@routes.WebJarAssets.at(WebJarAssets.locate("react.js"))'>
The error:
MultipleMatchesException: Multiple matches found for react.js. Please provide a more specific path, for example by including a version number.
I've found that accessing 'react.min.js' instead works, so there's a problem with the 'react.js' path. But why is it going wrong, is there a bug?