osacompile: no such component "JavaScript"

May 2, 2017

This happens when the system’s installation of osascripts is broken, which happen when, for example, some idiot just deletes something he shouldn’t. osacompile converts different languages to AppleScript. In this case, brunch was using it to compile js that would show a native notification. Run osalang -l in a terminal. If it does not give you a list of languages, you’ve found your problem.

You can probably fix it by (re-)installing the XCode Command Line Tools, or XCode itself. I just disabled native notifications in brunch and moved on with my life, gracefully. To do so, add notifications: false to brunch-config.js.

  if (proc.status) throw new Error(`${proc.stderr}`.trim());

Error: osacompile: no such component "JavaScript".
  at sync (/Users/user/project/assets/node_modules/tag-shell/index.js:24:26)
  at /Users/user/project/assets/node_modules/tag-shell/ind    return {allSourceFiles, sourceFiles, path, targets, type};
  at getAppPath (/Users/user/project/assets/node_modules/native-notifier/macos/index.js:14:7)
  at Object.module.exports.opts [as notify] (/Users/user/project/assets/node_modules/native-notifier/macos/index.js:29:19)
  at Object._notify (/Users/user/project/assets/node_modules/brunch/node_modules/loggy/index.js:73:10)
  at Object.logger.(anonymous function) [as error] (/Users/user/project/assets/node_modules/brunch/node_modules/loggy/index.js:101:12)
  at fileList.files.forEach.file (/Users/user/project/assets/node_modules/brunch/lib/fs_utils/write.js:103:28)
  at Map.forEach (native)
  at checkWritten (/Users/user/project/assets/node_modules/brunch/lib/fs_utils/write.js:102:18)
  at write (/Users/user/project/assets/node_modules/brunch/lib/fs_utils/write.js:133:3)
  at BrunchWatcher.compile (/Users/user/project/assets/node_modules/brunch/lib/watch.js:293:5)
  at FileList.fileList.on (/Users/user/project/assets/node_modules/brunch/lib/watch.js:154:14)
  at emitNone (events.js:86:13)
  at FileList.emit (events.js:188:7)
  at Timeout.timer.setTimeout [as _onTimeout] (/Users/user/project/assets/node_modules/brunch/lib/fs_utils/file_list.js:171:14)
  at ontimeout (timers.js:386:14)
  at tryOnTimeout (timers.js:250:5)
  at Timer.listOnTimeout (timers.js:214:5)

Other Articles

Mark Felt-Tipped Feb 25, 2018

Building Tensorflow 1.5.0 on MacOS with CUDA GPU Jan 21, 2018

Contact Jan 1, 2018

iTunes crashes with MediaControlSender AVSystemController_GetAirPlayInfo Aug 18, 2017

Add iterm2 marks to long-running outputs Jun 1, 2017

Trump Documents Atbash Decoded May 23, 2017

Polkit? WTF is this again? Actually... May 23, 2017

osacompile: no such component "JavaScript" May 2, 2017

" glxQueryVersion failed" with a headless chrome on alpine Mar 17, 2017

lighthouse/chromium/alpine/docker image Mar 9, 2017

Don't know how to build task '# Mar 6, 2017

sfdp: Error: Graphviz not built with triangulation library Jan 7, 2017

link_directory must be a directory Jan 2, 2017

Deactivating the Z170N's internal bluetooth in Clover Jul 3, 2016

Autogenerate a Dash Docset with Object Graph and documentation Statistics on Rails Migrate Jun 13, 2016

Massdrop is the worst spammer I've seen since the 90ies May 23, 2016

Verifying NGINX configurations in ansible May 23, 2016

ANSIBLE-MODULE-PATH and more Apr 29, 2016

'' is not a git command Apr 23, 2016

I rule (.svg) Mar 8, 2016

React and Relay error scrapbook Mar 3, 2016

Get a Grid, at least vertically Feb 17, 2016

Uncaught TypeError: Iterator value meps is not an entry object Nov 14, 2015

Controlled Jekyll Republishing with git Commit Messages Nov 2, 2015