Skip to content
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

Route manifest not compatible with Page.authenticate "redirectTo" #263

Closed
remjx opened this issue May 18, 2021 · 1 comment · Fixed by blitz-js/blitz#2359
Closed

Route manifest not compatible with Page.authenticate "redirectTo" #263

remjx opened this issue May 18, 2021 · 1 comment · Fixed by blitz-js/blitz#2359

Comments

@remjx
Copy link
Contributor

remjx commented May 18, 2021

What is the problem?

When I try to do

SomePage.authenticate = { redirectTo: Routes.LoginPage() }

I get the TypeScript error error TS2322: Type 'RouteUrlObject' is not assignable to type 'string'.

What are detailed steps to reproduce this?

  1. run tsc

Run blitz -v and paste the output here:

Windows 10 | win32-x64 | Node: v14.15.5

blitz: 0.34.3 (global)
blitz: 0.35.0 (local) 

  Package manager: npm 
  System:
    OS: Windows 10 10.0.19042
    CPU: (6) x64 Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz
    Memory: 6.65 GB / 15.94 GB
  Binaries:
    Node: 14.15.5 - C:\Program Files\nodejs\node.EXE     
    Yarn: 1.22.10 - C:\Program Files\nodejs\yarn.CMD     
    npm: 6.14.11 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  npmPackages:
    @prisma/client: ~2.20 => 2.20.1
    blitz: 0.35.0 => 0.35.0
    prisma: ~2.20 => 2.20.1
    react: 0.0.0-experimental-6a589ad71 => 0.0.0-experimental-6a589ad71
    react-dom: 0.0.0-experimental-6a589ad71 => 0.0.0-experimental-6a589ad71
    typescript: ~4.2 => 4.2.4
@Skn0tt
Copy link
Member

Skn0tt commented May 18, 2021

Seems very much related to blitz-js/blitz#2243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants