hyper
hyper copied to clipboard
I'm an absolute beginner with flutter, once getting Hyper installed I get this error message....Error loading config: syntaxError: unexpected token ':'.....Error reading configuration: 'config' key is missing
- [x] Your Hyper.app version is 3.2.0. Please verify you're using the latest Hyper.app version
- [ ] I have searched the issues of this repo and believe that this is not a duplicate
- Any relevant information from devtools? (CMD+OPTION+I on macOS, CTRL+SHIFT+I elsewhere):
- Is the issue reproducible in vanilla Hyper.app?
Issue
- Hyper version: undefined "3.2.0"
- OS ARCH VERSION: win32 x64 10.0.22533
- Electron: 16.0.8 LANG: undefined
- SHELL: undefined TERM: undefined
.hyper.js contents
{
"updateChannel": "stable",
"fontSize": 12,
"fontFamily": "Menlo, \"DejaVu Sans Mono\", Consolas, \"Lucida Console\", monospace",
"fontWeight": "normal",
"fontWeightBold": "bold",
"lineHeight": 1,
"letterSpacing": 0,
"cursorColor": "rgba(248,28,229,0.8)",
"cursorAccentColor": "#000",
"cursorShape": "BLOCK",
"cursorBlink": false,
"foregroundColor": "#fff",
"backgroundColor": "#000",
"selectionColor": "rgba(248,28,229,0.3)",
"borderColor": "#333",
"css": "",
"termCSS": "",
"workingDirectory": "",
"showHamburgerMenu": "",
"showWindowControls": "",
"padding": "12px 14px",
"colors": {
"black": "#000000",
"red": "#C51E14",
"green": "#1DC121",
"yellow": "#C7C329",
"blue": "#0A2FC4",
"magenta": "#C839C5",
"cyan": "#20C5C6",
"white": "#C7C7C7",
"lightBlack": "#686868",
"lightRed": "#FD6F6B",
"lightGreen": "#67F86F",
"lightYellow": "#FFFA72",
"lightBlue": "#6A76FB",
"lightMagenta": "#FD7CFC",
"lightCyan": "#68FDFE",
"lightWhite": "#FFFFFF",
"limeGreen": "#32CD32",
"lightCoral": "#F08080"
},
"shell": "",
"shellArgs": [
"--login"
],
"env": {},
"bell": "SOUND",
"copyOnSelect": false,
"defaultSSHApp": true,
"quickEdit": false,
"macOptionSelectionMode": "vertical",
"webGLRenderer": true,
"webLinksActivationKey": "",
"disableLigatures": true,
"disableAutoUpdates": false,
"screenReaderMode": false,
"preserveCWD": true
}
plugins
{
"plugins": [],
"localPlugins": []
}
where are you getting this error? can you post some screenshots and the commands that you are using?
okay but it appears like this without even using any commands
Hello @kamelbouchair
A quick question, is the content of ~/.hyper.js
exactly as you described? Or did you forget to include the top part (represented below)?
"use strict";
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less
...
The .hyper.js
file should contain actual javascript
. Filling it as a json
will not create an exports.config
for the configuration code to read later.
Also as far as I know hyper is not a flutter application (which would use Dart) but a node (+electron) application (which runs on javascript).
I am getting exact same error on Ubuntu 22.04. Default .hyper.js config file.
unexpected token default error reading configuration 'config' key missing
I am getting exact same error on Ubuntu 22.04. Default .hyper.js config file.
unexpected token default error reading configuration 'config' key missing
Hello @ubuntupunk,
Could you provide more details ?
- hyper version
- screen or exact copy of the full error message
- what action from you triggers such an error
- ...
If you just installed hyper
and have a default .hyper.js
config file I don't see how this could happen.
I had the same error as @ubuntupunk . I had modified the default hyper.js
file by adding a font. that seems to be causing the error for me.