-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
What is the problem?
When you create new blitz project and push to github, husky throws up errors for Routes
Paste all your error logs here:
app/auth/components/LoginForm.tsx:41:30 - error TS2339: Property 'ForgotPasswordPage' does not exist on type '{ ThisFileHasNotYetBeenGeneratedPleaseRunBlitzCodeGen(query?: ParsedUrlQueryInput | undefined): UrlObject; }'.
41 <Link href={Routes.ForgotPasswordPage()}>
~~~~~~~~~~~~~~~~~~
app/auth/components/LoginForm.tsx:48:31 - error TS2339: Property 'SignupPage' does not exist on type '{ ThisFileHasNotYetBeenGeneratedPleaseRunBlitzCodeGen(query?: ParsedUrlQueryInput | undefined): UrlObject; }'.
48 Or <Link href={Routes.SignupPage()}>Sign Up</Link>
~~~~~~~~~~
app/auth/pages/reset-password.tsx:20:42 - error TS2339: Property 'Home' does not exist on type '{ ThisFileHasNotYetBeenGeneratedPleaseRunBlitzCodeGen(query?: ParsedUrlQueryInput | undefined): UrlObject; }'.
20 Go to the <Link href={Routes.Home()}>homepage</Link>
~~~~
app/auth/pages/signup.tsx:10:55 - error TS2339: Property 'Home' does not exist on type '{ ThisFileHasNotYetBeenGeneratedPleaseRunBlitzCodeGen(query?: ParsedUrlQueryInput | undefined): UrlObject; }'.
10 <SignupForm onSuccess={() => router.push(Routes.Home())} />
~~~~
app/pages/index.tsx:38:28 - error TS2339: Property 'SignupPage' does not exist on type '{ ThisFileHasNotYetBeenGeneratedPleaseRunBlitzCodeGen(query?: ParsedUrlQueryInput | undefined): UrlObject; }'.
38 <Link href={Routes.SignupPage()}>
~~~~~~~~~~
app/pages/index.tsx:43:28 - error TS2339: Property 'LoginPage' does not exist on type '{ ThisFileHasNotYetBeenGeneratedPleaseRunBlitzCodeGen(query?: ParsedUrlQueryInput | undefined): UrlObject; }'.
43 <Link href={Routes.LoginPage()}>
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
- blitz new myAppName
- cd myAppName
- git init
- git add .
- git commit -m "first commit"
- git branch -M main
- git remote add origin git@github.....
- git push -u origin main
Run blitz -v and paste the output here:
macOS Big Sur | darwin-x64 | Node: v14.19.3
blitz: 0.45.4 (global)
blitz: 0.45.4 (local)
Package manager: yarn
System:
OS: macOS 11.5.2
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 391.46 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.19.3 - ~/.nvm/versions/node/v14.19.3/bin/node
Yarn: 1.22.11 - /usr/local/bin/yarn
npm: 6.14.17 - ~/.nvm/versions/node/v14.19.3/bin/npm
Watchman: Not Found
npmPackages:
@prisma/client: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1
blitz: 0.45.4 => 0.45.4
prisma: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1
react: 18.0.0 => 18.0.0
react-dom: 18.0.0 => 18.0.0
typescript: ~4.5 => 4.5.5
Please include below any other applicable logs and screenshots that show your problem:
No response