Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component @nivo/circle-packing has issue with typescript #1491

Closed
VitaliyN opened this issue Apr 24, 2021 · 1 comment
Closed

Component @nivo/circle-packing has issue with typescript #1491

VitaliyN opened this issue Apr 24, 2021 · 1 comment

Comments

@VitaliyN
Copy link

I have issue with component @nivo/circle-packing in my solution.
Details:
React with TypeScript
dependencies: {
"@nivo/circle-packing": "^0.68.0",
"@nivo/core": "^0.68.0"
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-scripts": "4.0.2",
...
}

Error message:
TypeScript error in /src/pages/demo/demo.tsx(3,34):
Could not find a declaration file for module '@nivo/circle-packing'. '/node_modules/@nivo/circle-packing/dist/nivo-circle-packing.cjs.js' implicitly has an 'any' type. Try npm i --save-dev @types/nivo__circle-packingif it exists or add a new declaration (.d.ts) file containingdeclare module '@nivo/circle-packing';` TS7016

Can you adding support of typescript for @nivo/circle-packing component?

@wyze
Copy link
Contributor

wyze commented Apr 24, 2021

Duplicate #1228. There is a closed PR that I will try to revive that looks complete, #1360.

@wyze wyze closed this as completed Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants