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.

Command failed: remix routes --json | tee in Windows Powershell

See original GitHub issue

Describe the bug

Followed the instructions up to this line yarn routes-gen -d @routes-gen/remix and received the following error:

image

I believe this occurs because on Windows it defaults to use command prompt instead of Powershell, where the command would have worked.

Your Example Website or App

n/a

Steps to Reproduce the Bug or Issue

  1. Open existing remix repo on VSCode Windows
  2. yarn add routes-gen @routes-gen/remix
  3. yarn routes-gen -d @routes-gen/remix

Expected behavior

It will parse and export the routes, based on the driver that you’ve provided.

Screenshots or Videos

No response

Platform

  • OS: Windows 10 Powershell
  • IDE: VSCode

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sandulatcommented, Oct 10, 2022

@xHomu This was actually affecting another package as well: https://github.com/sandulat/remix-docs-gen

It’s now fixed there as well. Thanks once again for pointing this one out!

1reaction
xHomucommented, Oct 4, 2022

Yey it works! Thanks for kicking ass, @sandulat !

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Right usage of 2>&1 | tee or | tee with powershell
When I use command | tee output.txt somehow it generates no output file at all but it works as usual in the console....
Read more >
PowerShell and Tee - stderr - Super User
My-Command 2>&1 | Tee-Object 'myfile.log' . See Get-Help about_Redirection . You should be trapping errors, not relying on Ctrl + C . See ......
Read more >
Untitled
Acgenral.dll windows 8, Is isis in america, Psani me mne, Walter muls, ... Old police lights, Powershell return code of last command, Deep...
Read more >
Aidan Finn, IT Pro
In this article, I want to explain why a typical “Azure migration” project is doomed to fail to deliver what the business ultimately...
Read more >
Untitled
Richard debbie wilpon, Przypominacz na windows, Stavky na istotu, Fairy tail awesome ... Foppapedretti appendiabiti albero, Black veil brides haters tee, ...
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