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.

Legends (LegendPropShape) -- No Exported Member (error TS2694)

See original GitHub issue

Describe/explain the bug The version used to produce this bug is 0.70.1. The NPM package csstype does not contain a member called AnimationIterationCountProperty. This causes issues when running the tsc. This is affecting the LegendPropShape type (props.d.ts)

data: PropTypes.Requireable<(PropTypes.InferProps<{ id: PropTypes.Validator<import("csstype").AnimationIterationCountProperty>; label: PropTypes.Validator<import("csstype").AnimationIterationCountProperty>; color: PropTypes.Requireable<string>; fill: PropTypes.Requireable<string>; }> | null)[]>;

To Reproduce Use the LegendPropShape type and attempt to run tsc --emitDeclarationOnly. This will result in a tsc error. https://codesandbox.io/s/missing-cssimport-r1cxp?file=/package.json

Steps to reproduce the behavior:

  1. Use legends in a plot, such as a bar plot
  2. Execute tsc --emitDeclarationOnly

Expected behavior Running tsc --emitDeclarationOnly does not cause this error.

Desktop (please complete the following information):

  • OS: macOS
  • Browser N/A (this is a type bug, not runtime bug)
  • Version N/A (this is a type bug, not runtime bug)

Additional context N/A

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
SProstcommented, Jun 2, 2021

It appears that as long as "skipLibCheck": true is set in the tsconfig, the issue doesn’t surface.

0reactions
wyzecommented, Jun 3, 2021

I see that in the generated output. I’ll see if there is something we can do to change it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module has no exported member error in angular module
I've got the error "Module has no exported member" for my DialogComponent, UploadService, and UploadComponent.
Read more >
has no exported member 'ɵɵfactorydeclaration' - You.com
I am running and Angular app which has been compiled successfully using npm install . Now, when I execute npm start I get...
Read more >
Unable to resolve "@pnp/graph"' has no exported member ...
Now, while using 'import { graph } from "@pnp/graph"' I am getting below error. '"@pnp/graph"' has no exported member named 'graph'.
Read more >
Module has no exported member error in TypeScript
The error "Module has no exported member" occurs when we try to import a member that doesn't exist in the specified module. To...
Read more >
Module '"mongoose"' has no exported member ... - YouTube
In this video, we fix an error related to DocumentDefinition and update service inputs so they do not need to omit values.
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