hydra-synth / atom-hydra

78 stars 30 forks source link

Failed to activate the atom-hydra package #53

Open Avitax opened 2 years ago

Avitax commented 2 years ago

Just updated the atom hydra package on macOS Big Sur 11.6, have this error:

/Users/avitax/.atom/packages/atom-hydra/node_modules/hydra-synth/src/index.js:1 (function (exports, require, module, filename, dirname, process, global, Buffer) { return function (exports, require, module, filename, dirname) { import Synth from './hydra-synth.js' ^^^^^^ SyntaxError: Cannot use import statement outside a module at new Script (vm.js:84:7) at NativeCompileCache.runInThisContext (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:11:148836) at Module.get_Module._compile (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:11:149690) at Object.value [as .js] (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:11:153507) at Module.load (internal/modules/cjs/loader.js:815:32) at Module._load (internal/modules/cjs/loader.js:727:14) at Function.Module._load (electron/js2c/asar.js:769:28) at Module.require (file:///private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app.asar/static/index.js:72:46) at require (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:11:149229) at Object. (/Users/avitax/.atom/packages/atom-hydra/lib/main.js:3:49) at Object. (/Users/avitax/.atom/packages/atom-hydra/lib/main.js:24:26) at Module.get_Module._compile (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:11:149913) at Object.value [as .js] (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:11:153507) at Module.load (internal/modules/cjs/loader.js:815:32) at Module._load (internal/modules/cjs/loader.js:727:14) at Function.Module._load (electron/js2c/asar.js:769:28) at Module.require (file:///private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app.asar/static/index.js:72:46) at require (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:11:149229) at Object. (/Users/avitax/.atom/packages/atom-hydra/lib/atom-hydra.js:7:15) at Object. (/Users/avitax/.atom/packages/atom-hydra/lib/atom-hydra.js:49:2) at Module.get_Module._compile (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:11:149913) at Object.value [as .js] (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:11:153507) at Module.load (internal/modules/cjs/loader.js:815:32) at Module._load (internal/modules/cjs/loader.js:727:14) at Function.Module._load (electron/js2c/asar.js:769:28) at Module.require (file:///private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app.asar/static/index.js:72:46) at require (internal/modules/cjs/helpers.js:74:18) at customRequire (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:1:756278) at requireModule (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:14:1175133) at Package.requireMainModule (/private/var/folders/1z/kvbzjfz163d8v9vd3tsjcb8w0000gn/T/AppTranslocation/4E6214AF-102F-484F-93D8-F34710C5A730/d/Atom.app/Contents/Resources/app/static/:11:3423763)

jordan-gillard commented 1 year ago

Please post the output from the following commands in your terminal:

node --version
npm --version

I also encourage you to following the instructions for using atom-hydra via npm link since Atom will be deprecated in a week.