cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

[CAL-3155] The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed

Open Pritam-sd-dev opened this issue 1 year ago • 5 comments

Issue Summary

Screenshot from 2024-02-16 13-43-04

A summary of the issue. This needs to be a clear detailed-rich summary.

Steps to Reproduce

  1. just open _router.ts to reproduce

Technical details

  • Node.js version : 18

From SyncLinear.com | CAL-3155

Pritam-sd-dev avatar Feb 16 '24 08:02 Pritam-sd-dev

Screenshot from 2024-02-16 15-15-47 when setting compiler options declare: false error goes away

Pritam-sd-dev avatar Feb 16 '24 09:02 Pritam-sd-dev

@Udit-takkar please help

Pritam-sd-dev avatar Feb 16 '24 09:02 Pritam-sd-dev

@Udit-takkar please help

I also got this warning once but i don't see it now on my device.

Udit-takkar avatar Feb 16 '24 11:02 Udit-takkar

@Udit-takkar can you please confirm whether you have set compilerOptions{declarations: false} in your project

Pritam-sd-dev avatar Feb 16 '24 12:02 Pritam-sd-dev

Screenshot from 2024-02-16 18-15-25 setting compilerOptions as in images resolves this problem but i am not sure whether it is logically correct or not.

Pritam-sd-dev avatar Feb 16 '24 12:02 Pritam-sd-dev

By setting declaration: false you just lose intellisense.

You can read more about it here

MehulZR avatar Feb 19 '24 08:02 MehulZR