question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breakpoints missing in TypeScript definitions

See original GitHub issue

Describe the bug The prop breakpoints is missing from the types definitions. Compilation fails with the following error:

No overload matches this call.
  Overload 1 of 2, '(props: Readonly<CarouselProps>): default', gave the following error.
    Type '{ children: Element[]; centered: true; infinite: true; slidesPerPage: number; slidesPerScroll: number; stopAutoPlayOnHover: true; offset: number; autoPlay: number; value: number; onChange: (e: number) => void; breakpoints: { ...; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<default> & Readonly<CarouselProps> & Readonly<{ children?: ReactNode; }>'.
      Property 'breakpoints' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<default> & Readonly<CarouselProps> & Readonly<{ children?: ReactNode; }>'.
  Overload 2 of 2, '(props: CarouselProps, context?: any): default', gave the following error.
    Type '{ children: Element[]; centered: true; infinite: true; slidesPerPage: number; slidesPerScroll: number; stopAutoPlayOnHover: true; offset: number; autoPlay: number; value: number; onChange: (e: number) => void; breakpoints: { ...; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<default> & Readonly<CarouselProps> & Readonly<{ children?: ReactNode; }>'.
      Property 'breakpoints' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<default> & Readonly<CarouselProps> & Readonly<{ children?: ReactNode; }>'.  TS2769

Expected behavior The prop should be added to the types definitions file so that compilation works.

Desktop (please complete the following information):

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

Cannot set breakpoints in TypeScript - VS Code - Stack Overflow
I am having a problem setting breakpoints in my TypeScript nodejs app in Visual Studio Code. I have followed the instructions on the...
Read more >
TypeScript debugging with Visual Studio Code
Whenever you set a breakpoint in the original source, VS Code tries to find the generated source by searching the files specified by...
Read more >
Typescript breakpoints are not hit by debugger
now go and place a breakpoint in a typescript file inside a nested folder inside src folder, like utils. place breakpoint in ./src/utils/index....
Read more >
Debug a JavaScript or TypeScript app - Visual Studio (Windows)
The debugger pauses at the breakpoint you set (IDE highlights the statement in the yellow background). Now, you can inspect your app state...
Read more >
Set Breakpoints - MATLAB & Simulink - MathWorks
To clear all breakpoints in all files, including error breakpoints, right-click the breakpoint alley and select Clear All Breakpoints. You also can use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found