title: Loading "grunt-karma.js" tasks...ERROR >> SyntaxError: Unexpected identifier
body: <p>Getting an error loading "grunt-karma.js" tasks. All other tasks load fine.
  Started to see the problem after updating a number of dependencies including grunt-karma and karma. </p>
  
  <p>From my package.json:</p>
  
  <p>"grunt-karma": "^3.0.2",
  "karma": "^4.2.0",</p>
  
  <p>My Karma config in Gruntfile.js:</p>
  
  <pre><code>/**
   * The Karma configurations.
   */
  karma: {
      options: {
          configFile: '&lt;%= build_dir %&gt;/karma-unit.js'
      },
      unit: {
          port: 9019,
          background: true
      },
      continuous: {
          singleRun: true
      }
  },
  </code></pre>
  
  <p>When I run grunt watch --verbose --debug this is the error I see:</p>
  
  <pre><code>Registering "grunt-karma" local Npm module tasks.
  Reading C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\grunt-karma\package.json...OK
  Parsing C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\grunt-karma\package.json...OK
  Loading "grunt-karma.js" tasks...ERROR
  &gt;&gt; C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\karma\lib\server.js:117
  &gt;&gt;   async start () {
  &gt;&gt;         ^^^^^
  &gt;&gt; SyntaxError: Unexpected identifier
  &gt;&gt;   at createScript (vm.js:56:10)
  &gt;&gt;   at Object.runInThisContext (vm.js:97:10)
  &gt;&gt;   at Module._compile (module.js:542:28)
  &gt;&gt;   at Object.Module._extensions..js (module.js:579:10)
  &gt;&gt;   at Module.load (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\coffeescript\lib\coffee-script\register.js:45:36)
  &gt;&gt;   at tryModuleLoad (module.js:446:12)
  &gt;&gt;   at Function.Module._load (module.js:438:3)
  &gt;&gt;   at Module.require (module.js:497:17)
  &gt;&gt;   at require (internal/module.js:20:19)
  &gt;&gt;   at Object.&lt;anonymous&gt; (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\karma\lib\index.js:4:16)
  &gt;&gt;   at Module._compile (module.js:570:32)
  &gt;&gt;   at Object.Module._extensions..js (module.js:579:10)
  &gt;&gt;   at Module.load (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\coffeescript\lib\coffee-script\register.js:45:36)
  &gt;&gt;   at tryModuleLoad (module.js:446:12)
  &gt;&gt;   at Function.Module._load (module.js:438:3)
  &gt;&gt;   at Module.require (module.js:497:17)
  &gt;&gt;   at require (internal/module.js:20:19)
  &gt;&gt;   at Object.&lt;anonymous&gt; (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\grunt-karma\tasks\grunt-karma.js:9:30)
  &gt;&gt;   at Module._compile (module.js:570:32)
  &gt;&gt;   at Object.Module._extensions..js (module.js:579:10)
  &gt;&gt;   at Module.load (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\coffeescript\lib\coffee-script\register.js:45:36)
  &gt;&gt;   at tryModuleLoad (module.js:446:12)
  &gt;&gt;   at Function.Module._load (module.js:438:3)
  &gt;&gt;   at Module.require (module.js:497:17)
  &gt;&gt;   at require (internal/module.js:20:19)
  &gt;&gt;   at loadTask (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\grunt\lib\grunt\task.js:313:10)
  &gt;&gt;   at C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\grunt\lib\grunt\task.js:351:7
  &gt;&gt;   at Array.forEach (native)
  &gt;&gt;   at loadTasks (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\grunt\lib\grunt\task.js:350:11)
  &gt;&gt;   at Task.task.loadNpmTasks (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\grunt\lib\grunt\task.js:398:5)
  &gt;&gt;   at Object.module.exports (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\Gruntfile.js:17:11)
  &gt;&gt;   at loadTask (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\grunt\lib\grunt\task.js:315:10)
  &gt;&gt;   at Task.task.init (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\grunt\lib\grunt\task.js:434:5)
  &gt;&gt;   at Object.grunt.tasks (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\grunt\lib\grunt.js:111:8)
  &gt;&gt;   at Object.module.exports [as cli] (C:\Development\gitrepository\ContactCenterRepos\ccs-sdk\CCS_SDK\JavaScript\RefClient\node_modules\grunt\lib\grunt\cli.js:27:9)
  &gt;&gt;   at Object.&lt;anonymous&gt; (C:\Users\pruane\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt:44:20)
  &gt;&gt;   at Module._compile (module.js:570:32)
  &gt;&gt;   at Object.Module._extensions..js (module.js:579:10)
  &gt;&gt;   at Module.load (module.js:487:32)
  &gt;&gt;   at tryModuleLoad (module.js:446:12)
  &gt;&gt;   at Function.Module._load (module.js:438:3)
  &gt;&gt;   at Module.runMain (module.js:604:10)
  &gt;&gt;   at run (bootstrap_node.js:389:7)
  &gt;&gt;   at startup (bootstrap_node.js:149:9)
  &gt;&gt;   at bootstrap_node.js:504:3
  </code></pre>