-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install plugins using hyper i {plugin}
#3500
Comments
After running Hyper locally and modifying the () => getParsedFile().program.body[0].expression.right.properties The object at index 0 doesn't have a I'm not sure where to go from there - it seems like maybe there's a way to detect if it's missing and try the other one, but I don't want to make too many assumptions. I'm not familiar enough with the internals here to guess as to why index 1 works and index 0 doesn't, so hopefully someone else knows why it might be happening. |
I have the same issue with Hyper 3.0.0, Windows 10 1809 with .hyper.js not modified. Reinstalling Hyper (+ deletion of AppData\Roaming\Hyper and AppData\Local\hyper) does not solve the problem. |
another one here with the exact same message after updating to this does seem to be specifically CLI related though, because when I add the plugin names to my |
@peterleif @ZaLiTHkA this is possibly due to #3602 |
@pcnate Thank you for sharing the information but actually isn't because I deleted old installations manually.
|
@pcnate @peterleif I also don't think that's the root cause. When I run |
I have the same problem. On Win10 with version 3.0.0
I also installed it today for the first time on my mac. It works fine there. |
Same here, hyper 3.0.0. on Windows 10 (10.0.17763), trying to install plugins or themes results in the cannot read property error. |
It seems a problem with webpack dependeciy as is described in this link webpack |
Here's another confirmation running hyper 3.0.0 on Windows 10. |
Same issue here |
here's an interesting one... in trying to help debug a different issue, I managed to get however, I'm not entirely sure if it's actually working properly.. my plugins: [
'hyper-website-theme',
'hyper-yes',
'hyper-single-instance'
] but Andre@Monstrosity MINGW64 ~
$ hyper list
hyper-website-theme
hypercwd any suggestions on how to verify which plugins are actually installed? |
@ZaLiTHkA so the actual list of plugins installed are in %APPDATA%/Hyper/.hyper.js Im guessing its reading the list of plugins in %USERPROFILE%/.hyper.js not the actual list of plugins. But yeah, the CLI isnt working for me either (hyper version shows 3.0.0) but just adding the plugin to the .hyper.js file works fine. |
Its happening with every hyper command not only |
aha, you're dead on there.. plugin: ['hyper-webite-theme', 'hypercwd'] |
I just managed to reproduce the I renamed both I then updated the new file with my personal settings and copied it over to hope that helps a bit. O.o |
@ZaLiTHkA wow that worked perfectly! Thanks |
FWIW, I just completely uninstalled Hyper, downloaded the latest from the website, and tried this again but got the same results as before. |
Hi, @ZaLiTHkA Thanks!. I have executed this, but to apply the changes in the $APPDATA/Hyper/.hyper.js file have created a symbolic link. Example:
|
oh awesome, I didn't think of using a symlink yesterday, but that actually works perfectly. thanks. :) for the project maintainers: it seems like the Hyper app itself and the Andre@Monstrosity MINGW64 ~
$ hyper list
hyper-website-theme
hypercwd
hyper-yes
hyper-single-instance
Andre@Monstrosity MINGW64 ~
$ hyper install hyper-search
hyper-search installed successfully!
Andre@Monstrosity MINGW64 ~
$ hyper list
hyper-website-theme
hypercwd
hyper-yes
hyper-single-instance
hyper-search |
This fails for me on a fresh install. Google brought me here. How can we find where cli looks for the .hyper.js vs where the terminal looks for it? |
@voronoipotato, try the symbolic link idea that @xxmlud posted just two comments before you. That should help until it's fixed in the app. |
I'm a new user so I've not actually gotten to see it working. I'm just going to wait till it's fixed :) but I'm happy to help fix it. https://github.com/zeit/hyper/blob/27c1893fb82dde78b5686c9034ac3268395198f2/cli/api.js#L9 This looks somewhat promising. |
I'm seeing a lot of users reporting that @ZaLiTHkA's solution with a symlink worked for them. AFAIK, that's only going to work for Windows users. For those of us on macOS, I'm not sure of a similar solution. I did a search for a Anyone else on macOS found a workaround? |
I installed hyper today, and I met the same problem. However, after I add the same variables to the System variables and restart the computer. the command like |
@mikemcbride I'm more of a Windows/Linux guy myself, but we do have a Mac here at work that I use quite often, I'll see if I can work out the file locations just now.. so unless you come right in the meantime, I might have some more info for you on that shortly. @jjakj1 there was a |
Update to 3.0.2 fixed the issue for me. I can now install plugins :D love it!!! Nice quick reaction!!! |
Not fixed for me @ 3.0.2, macOS. I've tried making the config file a symlink - didn't help. |
hi there, bumping this because i have the same issue on a linux box with 3.0.2. |
@voronoipotato would you like to work on this issue and make a PR? |
I have the same problem here. $ hyper i hyper-pane
/Applications/Hyper.app/Contents/Resources/bin/cli.js:19156
getProperties = memoize(() => getParsedFile().program.body[0].expression.right.properties),
^
TypeError: Cannot read property 'properties' of undefined
at memoize (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19156:85)
at d (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19141:22)
at memoize (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19157:34)
at d (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19141:22)
at Object.install (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19187:37)
at Args.args.command (/Applications/Hyper.app/Contents/Resources/bin/cli.js:9934:45)
at Args.runCommand (/Applications/Hyper.app/Contents/Resources/bin/cli.js:11318:37)
at Args.module.exports [as parse] (/Applications/Hyper.app/Contents/Resources/bin/cli.js:15089:10)
at main (/Applications/Hyper.app/Contents/Resources/bin/cli.js:9991:18)
at Object.module.exports.name (/Applications/Hyper.app/Contents/Resources/bin/cli.js:10038:1) |
$ hyper list
/Applications/Hyper.app/Contents/Resources/bin/cli.js:19156
getProperties = memoize(() => getParsedFile().program.body[0].expression.right.properties),
^
TypeError: Cannot read property 'properties' of undefined
at memoize (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19156:85)
at d (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19141:22)
at memoize (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19157:34)
at d (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19141:22)
at Object.list (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19205:26)
at Args.args.command (/Applications/Hyper.app/Contents/Resources/bin/cli.js:9943:15)
at Args.runCommand (/Applications/Hyper.app/Contents/Resources/bin/cli.js:11318:37)
at Args.module.exports [as parse] (/Applications/Hyper.app/Contents/Resources/bin/cli.js:15089:10)
at main (/Applications/Hyper.app/Contents/Resources/bin/cli.js:9991:18)
at Object.module.exports.name (/Applications/Hyper.app/Contents/Resources/bin/cli.js:10038:1) |
Looks like it's fixed in 3.0.2. Initially after updating and also reinstalling was getting the same error "TypeError: Cannot read property 'properties' of undefined" but then I deleted .hyper.js file in Home Directory, deleted /usr/local/bin/hyper and resintalled Hyper and modified .hyper.js (don't replace old one, just modify the new file) now it's all smooth. hyper i, hyper list all working fine now. OS version and name: macOS Mojave 10.15.2 |
The 3.0.2 release did not seem to work for me (as others above also reported). I was able to get this working locally by modifying the |
Issue
Using
hyper i [plugin_name]
, I am getting the same error every time:It looks like this line is the offender, but I'm not sure what's causing the error. I have not yet tried building Hyper and running locally, but I could do that and add some logging to try and determine the root cause if there's not enough information here.
The text was updated successfully, but these errors were encountered: