play.sbt.PlayExceptions$UnexpectedException

Unexpected exception[JsTaskFailure: module.js:338 throw err; ^ Error: Cannot find module 'D:\workspaces\myproject\node_modules\postcss-cli\bin\postcss' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Function.Module.runMain (module.js:501:10) at startup (node.js:129:16) at node.js:814:3 ]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web16

  • via GitHub by eximius313
    ,
  • Stack trace

    • play.sbt.PlayExceptions$UnexpectedException: Unexpected exception[JsTaskFailure: module.js:338 throw err; ^ Error: Cannot find module 'D:\workspaces\myproject\node_modules\postcss-cli\bin\postcss' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Function.Module.runMain (module.js:501:10) at startup (node.js:129:16) at node.js:814:3 ] at play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:51)[na:na] at play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:44)[na:na] at scala.Option.map(Option.scala:145)[scala-library-2.11.6.jar:na] at play.sbt.run.PlayReload$.taskFailureHandler(PlayReload.scala:44)[na:na] at play.sbt.run.PlayReload$.compileFailure(PlayReload.scala:40)[na:na] at play.sbt.run.PlayReload$$anonfun$compile$1.apply(PlayReload.scala:17)[na:na] at play.sbt.run.PlayReload$$anonfun$compile$1.apply(PlayReload.scala:17)[na:na] at scala.util.Either$LeftProjection.map(Either.scala:377)[scala-library-2.11.6.jar:na] at play.sbt.run.PlayReload$.compile(PlayReload.scala:17)[na:na] at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$2.apply(PlayRun.scala:61)[na:na] Caused by: com.typesafe.sbt.jse.SbtJsTask$JsTaskFailure: module.js:338 throw err; ^ Error: Cannot find module 'D:\workspaces\myproject\node_modules\postcss-cli\bin\postcss' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Function.Module.runMain (module.js:501:10) at startup (node.js:129:16) at node.js:814:3 at com.typesafe.sbt.jse.SbtJsTask$$anonfun$com$typesafe$sbt$jse$SbtJsTask$$executeJsOnEngine$1.apply(SbtJsTask.scala:195)[na:na] at com.typesafe.sbt.jse.SbtJsTask$$anonfun$com$typesafe$sbt$jse$SbtJsTask$$executeJsOnEngine$1.apply(SbtJsTask.scala:167)[na:na] at scala.util.Success$$anonfun$map$1.apply(Try.scala:206)[scala-library-2.11.6.jar:na] at scala.util.Try$.apply(Try.scala:161)[scala-library-2.11.6.jar:na] at scala.util.Success.map(Try.scala:206)[scala-library-2.11.6.jar:na] at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)[scala-library-2.11.6.jar:na] at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)[scala-library-2.11.6.jar:na] at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)[scala-library-2.11.6.jar:na] at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107)[scala-library-2.11.6.jar:na] at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)[scala-library-2.11.6.jar:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.