[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.
Atom: 1.41.0 x64
Electron: 4.2.7
OS: Mac OS X 10.15
Thrown From: Hydrogen package 2.13.1
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)
Hydrogen 2.13.1
Note: Also happens on a fresh install of Atom.
This happened to me as well, after upgrading to 2.13.1 (I believe from 2.13.0). Hydrogen was working fine before upgrade.
I tried downgrading to 2.13.0 and it didn't help.
Downgraded to 2.8.0 and it seems to be working again.
Just updated from 2.13.0 to 2.13.1 and I am also seeing this. I'll try to investigate.
I've got the same problem from updating it to 2.13.1. How do I downgrade to a lower version?
@Xavier-JS
apm install [email protected]
Note from maintainer (@wadethestealth): This is the best current work around.
Discussion about hot-fixing the issue: https://nteract.slack.com/archives/C0HSD7MMZ/p1572409625104700.
Unfortunately, the assumed working solution doesn't work since nteract/outputs v2.0 still uses latest package. I don't feel comfortable to drop down a whole major version as it won't likely work, and thus I have reverted hydrogen v2.13.2.
Will investigate this again tomorrow.
have the same problem as well, downgrade to 2.12.1 version using apm install [email protected] in cmd. but the problem persists. hope it will be solved soon
Is this a recent issue? I did not have this problem two days ago.
@quigsj yes see the first referenced issue
The offending PR should be reversed now, and you should be able to install 2.13.1. Thanks for your patience.
This is still continuing.
Atom: 1.40.1 x64
Electron: 3.1.10
OS: Mac OS X 10.14.6
Thrown From: Hydrogen package 2.13.1
Uncaught SyntaxError: Unexpected token export
At /private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/Atom.app/Contents/Resources/app/static/<embedded>:11
/Users/pieterdevries/.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 (/private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/Atom.app/Contents/Resources/app/static/<embedded>:11:146322)
at Module.get_Module._compile (/private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/Atom.app/Contents/Resources/app/static/<embedded>:11:147206)
at Object.value [as .js] (/private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/Atom.app/Contents/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 (/private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/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 (/private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/Atom.app/Contents/Resources/app/static/<embedded>:11:147429)
at Object.value [as .js] (/private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/Atom.app/Contents/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 (/private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/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 (/private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/Atom.app/Contents/Resources/app/static/<embedded>:11:147429)
at Object.value [as .js] (/private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/Atom.app/Contents/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 (/private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/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 (/private/var/folders/p8/k7qb4ln558ng_mp839yppl8c0000gn/T/AppTranslocation/B9688DBD-EBB5-450C-8FAA-CA0F5DB6D7FE/d/Atom.app/Contents/Resources/app/static/<embedded>:11:147429)
Hydrogen 2.13.1
python-black 0.7.0
script 3.18.1
This is still a problem.
Atom: 1.40.1 x64
Electron: 3.1.10
OS: WS24
Thrown From: Hydrogen package 2.13.1
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)
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
The change has not been published, once it is published, this issue will be closed and considered solved.
Whats the temporal walk-around? Downgrade to previous Hydrogen 2.12 ? How to do that from Atom?
2.12 - 2.9 may work 2.8 does work. Use the apm command above @mashu
This issue is technically solved, but now all users will face #1811, so do not reinstall just yet and follow #1811 for any further updates.
Everyone please reinstall hydrogen now, publish has been fixed
Most helpful comment
@Xavier-JS
apm install [email protected]Note from maintainer (@wadethestealth): This is the best current work around.