Skip to content

Type error in dajy(value) #265

@christoph-maurer

Description

@christoph-maurer
136.6 ✔ Generate outputs
137.4 Attention: Next.js now collects completely anonymous telemetry regarding usage.
137.4 This information is used to shape Next.js' roadmap and prioritize features.
137.4 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:
137.4 https://nextjs.org/telemetry
137.4 
137.4 ▲ Next.js 16.2.6 (Turbopack)
137.4 - Experiments (use with caution):
137.4   ✓ typedEnv
137.4 
137.5   Running TypeScript ...
137.7 
137.7   We detected TypeScript in your project and reconfigured your tsconfig.json file for you.
137.7   The following mandatory changes were made to your tsconfig.json:
137.7 
137.7   	- moduleResolution was set to bundler (to match modern bundler resolution)
137.7 
162.7 Failed to type check.
162.7 
162.7 ./components/DateTimeX.tsx:10:29
162.7 Type error: No overload matches this call.
162.7   Overload 1 of 3, '(date?: string | number | Date | Dayjs | null | undefined): Dayjs', gave the following error.
162.7     Argument of type 'unknown' is not assignable to parameter of type 'string | number | Date | Dayjs | null | undefined'.
162.7   Overload 2 of 3, '(date?: string | number | Date | Dayjs | null | undefined, format?: OptionType | undefined, strict?: boolean | undefined): Dayjs', gave the following error.
162.7     Argument of type 'unknown' is not assignable to parameter of type 'string | number | Date | Dayjs | null | undefined'.
162.7   Overload 3 of 3, '(date?: string | number | Date | Dayjs | null | undefined, format?: OptionType | undefined, locale?: string | undefined, strict?: boolean | undefined): Dayjs', gave the following error.
162.7     Argument of type 'unknown' is not assignable to parameter of type 'string | number | Date | Dayjs | null | undefined'.
162.7 
162.7    8 |
162.7    9 | export default function DateTimeX({ value }: DateTimeProps) {
162.7 > 10 |   const parsedValue = dayjs(value);
162.7      |                             ^
162.7   11 |
162.7   12 |   const calendarContent = (
162.7   13 |     <div style={{ width: 300 }}>
162.8 Next.js build worker exited with code: 1 and signal: null
162.8 error Command failed with exit code 1.
162.8 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

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions