play.sbt.PlayExceptions$UnexpectedException: Unexpected exception[JsTaskFailure: /home/user/project/node_modules/postcss/lib/lazy-result.js:157 this.processing = new Promise(function (resolve, reject) { ^ ReferenceError: Promise is not defined at LazyResult.async (/home/user/project/node_modules/postcss/lib/lazy-result.js:157:31) at LazyResult.then (/home/user/project/node_modules/postcss/lib/lazy-result.js:79:21) at doProcess (/home/user/project/node_modules/postcss-cli/index.js:211:14) at iterate (/home/user/project/node_modules/neo-async/lib/async.js:8241:18) at done (/home/user/project/node_modules/neo-async/lib/async.js:8278:9) at Gatherer.<anonymous> (/home/user/project/node_modules/gather-stream/index.js:41:5) at Gatherer.emit (events.js:117:20) at finishMaybe (_stream_writable.js:360:12) at endWritable (_stream_writable.js:367:3) at Gatherer.Writable.end (_stream_writable.js:345:5) ]

GitHub | eximius313 | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ReferenceError: Promise is not defined

    GitHub | 1 year ago | eximius313
    play.sbt.PlayExceptions$UnexpectedException: Unexpected exception[JsTaskFailure: /home/user/project/node_modules/postcss/lib/lazy-result.js:157 this.processing = new Promise(function (resolve, reject) { ^ ReferenceError: Promise is not defined at LazyResult.async (/home/user/project/node_modules/postcss/lib/lazy-result.js:157:31) at LazyResult.then (/home/user/project/node_modules/postcss/lib/lazy-result.js:79:21) at doProcess (/home/user/project/node_modules/postcss-cli/index.js:211:14) at iterate (/home/user/project/node_modules/neo-async/lib/async.js:8241:18) at done (/home/user/project/node_modules/neo-async/lib/async.js:8278:9) at Gatherer.<anonymous> (/home/user/project/node_modules/gather-stream/index.js:41:5) at Gatherer.emit (events.js:117:20) at finishMaybe (_stream_writable.js:360:12) at endWritable (_stream_writable.js:367:3) at Gatherer.Writable.end (_stream_writable.js:345:5) ]
  2. 0

    GitHub comment 68#114744114

    GitHub | 2 years ago | Enalmada
    play.sbt.PlayExceptions$UnexpectedException: Unexpected exception[JsTaskFailure: C:\Users\Adam\code\mentormyself\project\target\node-modules\webjars\less\lib\le ss\index.js:13 functions: require('./functions')(environment), ^ TypeError: object is not a function at module.exports (C:\Users\Adam\code\mentormyself\project\target\node-modul es\webjars\less\lib\less\index.js:13:42) at Object.<anonymous> (C:\Users\Adam\code\mentormyself\project\target\node-m odules\webjars\less\lib\less-node\index.js:5:12) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (C:\Users\Adam\code\mentormyself\project\target\node-m odules\webjars\less\index.js:1:80) at Module._compile (module.js:460:26) ]

    Root Cause Analysis

    1. play.sbt.PlayExceptions$UnexpectedException

      Unexpected exception[JsTaskFailure: /home/user/project/node_modules/postcss/lib/lazy-result.js:157 this.processing = new Promise(function (resolve, reject) { ^ ReferenceError: Promise is not defined at LazyResult.async (/home/user/project/node_modules/postcss/lib/lazy-result.js:157:31) at LazyResult.then (/home/user/project/node_modules/postcss/lib/lazy-result.js:79:21) at doProcess (/home/user/project/node_modules/postcss-cli/index.js:211:14) at iterate (/home/user/project/node_modules/neo-async/lib/async.js:8241:18) at done (/home/user/project/node_modules/neo-async/lib/async.js:8278:9) at Gatherer.<anonymous> (/home/user/project/node_modules/gather-stream/index.js:41:5) at Gatherer.emit (events.js:117:20) at finishMaybe (_stream_writable.js:360:12) at endWritable (_stream_writable.js:367:3) at Gatherer.Writable.end (_stream_writable.js:345:5) ]

      at play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply()
    2. play.sbt.run
      PlayReload$$anonfun$taskFailureHandler$1.apply
      1. play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:51)[na:na]
      2. play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:44)[na:na]
      2 frames
    3. Scala
      Option.map
      1. scala.Option.map(Option.scala:145)[scala-library-2.11.7.jar:na]
      1 frame
    4. play.sbt.run
      PlayReload$$anonfun$compile$1.apply
      1. play.sbt.run.PlayReload$.taskFailureHandler(PlayReload.scala:44)[na:na]
      2. play.sbt.run.PlayReload$.compileFailure(PlayReload.scala:40)[na:na]
      3. play.sbt.run.PlayReload$$anonfun$compile$1.apply(PlayReload.scala:17)[na:na]
      4. play.sbt.run.PlayReload$$anonfun$compile$1.apply(PlayReload.scala:17)[na:na]
      4 frames
    5. Scala
      Either$LeftProjection.map
      1. scala.util.Either$LeftProjection.map(Either.scala:377)[scala-library-2.11.7.jar:na]
      1 frame
    6. play.sbt.run
      PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$2.apply
      1. play.sbt.run.PlayReload$.compile(PlayReload.scala:17)[na:na]
      2. play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$2.apply(PlayRun.scala:61)[na:na]
      2 frames