Cannot get my forked version of nivo to work as dependency. #1856
Unanswered
Jarvismkennedy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I hope that someone can help me with this. I forked nivo and changed a few packages so that they are specifically what I need for my project. I then included nivo into my project using
npm install github: <myname>/<nivo>
I believe I need to build the project and then link the local version of the packages im using. However, when I run
make packages-build
I get several errors like:
packages/scales/src/compute.ts:59:17 - error TS2742: The inferred type of 'computeScale' cannot be named without a reference to 'nivo/node_modules/@types/d3-scale'. This is likely not portable. A type annotation is necessary.
and like:
packages/circle-packing/src/types.ts:11:63 - error TS2307: Cannot find module '@nivo/colors' or its corresponding type declarations.
11 import { InheritedColorConfig, OrdinalColorScaleConfig } from '@nivo/colors'
I would really appreciate any help with this. The only way I have been able to get this to work is to install the regular nivo packages and manually replace the dist folders.
Beta Was this translation helpful? Give feedback.
All reactions