Skip to content

Type error: Property 'pendingInstitutions' does not exist #263

@christoph-maurer

Description

@christoph-maurer

With 5249d41 and beaad70, ./forge.mk all throws

130.3 ✔ Generate
130.3 ✔ Generate to ./__generated__/graphql.ts
130.3 ✔ Generate to ./__generated__/fragmentMatcherTypes.ts
130.3 ✔ Generate to ./__generated__/apolloHelpers.ts
130.3 ✔ Generate to ./queries/
130.3 ✔ Generate outputs
131.2 Attention: Next.js now collects completely anonymous telemetry regarding usage.
131.2 This information is used to shape Next.js' roadmap and prioritize features.
131.2 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
131.2 https://nextjs.org/telemetry
131.2 
131.3 ▲ Next.js 16.2.1 (Turbopack)
131.3 - Experiments (use with caution):
131.3   ✓ typedEnv
131.3 
131.3   Running TypeScript ...
148.9 Failed to type check.
148.9 
148.9 ./pages/institutions/index.tsx:34:26
148.9 Type error: Property 'pendingInstitutions' does not exist on type 'CurrentUserQuery'. Did you mean 'pendingInstitutionCount'?
148.9 
148.9   32 |       </Typography.Paragraph>
148.9   33 |       {currentUser?.roles?.includes(UserRole.Verifier) &&
148.9 > 34 |         currentUserData?.pendingInstitutions &&
148.9      |                          ^
148.9   35 |         currentUserData.pendingInstitutions.totalCount > 0 && (
148.9   36 |           <div>
148.9   37 |             <Divider />
149.1 Next.js build worker exited with code: 1 and signal: null
149.1 error Command failed with exit code 1.
149.1 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
Dockerfile.production:21
--------------------
  19 |     COPY ./ ./
  20 |     COPY --from=dependencies /app/node_modules ./node_modules
  21 | >>> RUN yarn build
  22 |     
  23 |     FROM base AS runtime
--------------------
ERROR: failed to build: failed to solve: process "/bin/bash -o errexit -o nounset -o pipefail -c yarn build" did not complete successfully: exit code: 1
make[1]: *** [forge.mk:24: build] Error 1
make[1]: Leaving directory '/home/christoph/Documents/building-envelope-data/bed_lokal/metabase_lokal/development'
make: *** [forge.mk:41: all] Error 2

Metadata

Metadata

Labels

2601Issues for the end of project EQWIN-PISEFraunhofer Institute for Solar Energy Systems ISEtriageReview issue to make sure it is relevant, actionable, and has all the necessary information

Type

No type
No fields configured for issues without a type.

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions