blitz-js / blitz-js/legacy-framework
Property 'ForgotPasswordPage' does not exist on type
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
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
~~~~~~~~~~~~~~~~~~
app/auth/components/LoginForm.tsx:48:31 - error TS2339: Property 'SignupPage' does not exist on type '{ ThisFileHasNotYetBeenGeneratedPleaseRunBlitzCodeGen(query?: ParsedUrlQueryInput | undefined): UrlObject; }'.
48 Or Sign Up
~~~~~~~~~~
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 homepage
~~~~
app/auth/pages/signup.tsx:10:55 - error TS2339: Property 'Home' does not exist on type '{ ThisFileHasNotYetBeenGeneratedPleaseRunBlitzCodeGen(query?: ParsedUrlQueryInput | undefined): UrlObject; }'.
10 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
~~~~~~~~~~
app/pages/index.tsx:43:28 - error TS2339: Property 'LoginPage' does not exist on type '{ ThisFileHasNotYetBeenGeneratedPleaseRunBlitzCodeGen(query?: ParsedUrlQueryInput | undefined): UrlObject; }'.
43
```
### Paste all relevant code snippets here:
```
```
### What are detailed steps to reproduce this?
1. blitz new myAppName
2. cd myAppName
3. git init
4. git add .
5. git commit -m "first commit"
6. git branch -M main
7. git remote add origin git@github.....
8. 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_
Contributor guide
Assessment
This issue has not been assessed yet.