hydrogen: Unable to install Hydrogen 2.13.1

[Enter steps to reproduce:] I first received this error when trying to start hydrogen: https://github.com/nteract/hydrogen/issues/1779 I attempted to resolve it using the linked solution (adding a line to dependencies in .atom packages) That didn’t fix it, so I uninstalled Hydrogen, restarted my computer, and then followed the steps below.

  1. Atom preferences
  2. Install tab
  3. Install Hydrogen

Atom: 1.41.0 x64 Electron: 4.2.7 OS: Mac OS X 10.15 Thrown From: Hydrogen package 2.13.1

Stack Trace

Uncaught SyntaxError: Unexpected token export

At /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11

/Users/mdsutcliffe/.atom/packages/Hydrogen/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vs.js:1
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { export default {
                                                                                                                                                           ^^^^^^

SyntaxError: Unexpected token export
    at new Script (vm.js:79:7)
    at NativeCompileCache.runInThisContext (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146322)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:147206)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146745)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/syntax-highlighter/index.js:15:30)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/syntax-highlighter/index.js:46:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:147429)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146745)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/components/source.js:15:46)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/components/source.js:51:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:147429)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146745)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/components/input.js:16:18)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/components/input.js:52:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:147429)

Commands

Non-Core Packages

Hydrogen 2.13.1 

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 4
  • Comments: 17 (8 by maintainers)

Most upvoted comments

@Xavier-JS apm install hydrogen@2.8.0


Note from maintainer (@wadethestealth): This is the best current work around.

This is still a problem.

Atom: 1.40.1 x64 Electron: 3.1.10 OS: WS24 Thrown From: Hydrogen package 2.13.1

Stack Trace

Uncaught SyntaxError: Unexpected token export

At C:\Dev\Atom\resources\app\static\<embedded>:11

C:\Dev\.atom\packages\Hydrogen\node_modules\react-syntax-highlighter\dist\esm\styles\prism\vs.js:1
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { export default {
                                                                                                                                                           ^^^^^^

SyntaxError: Unexpected token export
    at new Script (vm.js:74:7)
    at NativeCompileCache.runInThisContext (C:/Dev/Atom/resources/app/static/<embedded>:11:146322)
    at Module.get_Module._compile (C:/Dev/Atom/resources/app/static/<embedded>:11:147206)
    at Object.value [as .js] (C:/Dev/Atom/resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (C:/Dev/Atom/resources/app/static/<embedded>:11:146745)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/syntax-highlighter/index.js:15:30)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/syntax-highlighter/index.js:46:3)
    at Module.get_Module._compile (C:/Dev/Atom/resources/app/static/<embedded>:11:147429)
    at Object.value [as .js] (C:/Dev/Atom/resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (C:/Dev/Atom/resources/app/static/<embedded>:11:146745)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/components/source.js:15:46)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/components/source.js:51:3)
    at Module.get_Module._compile (C:/Dev/Atom/resources/app/static/<embedded>:11:147429)
    at Object.value [as .js] (C:/Dev/Atom/resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (C:/Dev/Atom/resources/app/static/<embedded>:11:146745)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/components/input.js:16:18)
    at /packages/Hydrogen/node_modules/@nteract/presentational-components/lib/components/input.js:52:3)
    at Module.get_Module._compile (C:/Dev/Atom/resources/app/static/<embedded>:11:147429)

Commands

Non-Core Packages

atom-ide-ui 0.13.0 
atom-language-r 1.4.8 
Hydrogen 2.13.1 
hydrogen-launcher 1.2.2 
ide-python 1.5.0 
ide-r 0.1.8 
language-stata 1.7.3 
minimap 4.29.9 
platformio-ide-terminal 2.10.0