question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

alacritty-themes TypeError

See original GitHub issue

Fresh install using

npm i -g alacritty-themes

Getting the following error after running

alacritty-themes
/usr/local/lib/node_modules/alacritty-themes/index.js:40
  ].flat();
    ^

TypeError: [(intermediate value)(intermediate value)(intermediate value),[path.resolve(...),path.resolve(...)]].flat is not a function
    at getAlacrittyConfig (/usr/local/lib/node_modules/alacritty-themes/index.js:40:5)
    at Object.<anonymous> (/usr/local/lib/node_modules/alacritty-themes/index.js:46:17)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/alacritty-themes/bin/cli.js:8:51)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
PranavBhattaraicommented, May 30, 2021

@rajasegar Wow, thanks a lot. But my command was a little bit tricky:

npx alacritty-themes --create
npx alacritty-themes

Thanks. A LOT of themes to select. Can be overwhelming.

0reactions
matthewdeancoopercommented, Jun 17, 2021

Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show HN: Alacritty-themes CLI to set themes for alacritty
After selecting a theme it crashes with "TypeError: Cannot set property 'value' of undefined" in index.js:24.
Read more >
[err_invalid_arg_type]: the "path" argument must be of type ...
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.
Read more >
Alacritty Help : r/archlinux - Reddit
TypeError: Cannot read property 'items' of null at updateTheme (/usr/lib/node_modules/alacritty-themes/index.js:39:31)
Read more >
Sorry for the trouble, it was a bug due to the file system path ...
Replies for: So it requires the user to create a "themes" directory and save all themes in ".yml" individual files. And the command...
Read more >
picom transparency doesn't apply to alacritty (bspwm)
I have a fresh install of arch linux and am currently trying to theme the terminal (alacritty) and the transparency when I set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found