-
Notifications
You must be signed in to change notification settings - Fork 185
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
[Bug]: Cannot find module 'topojson-specification' or its corresponding type declarations #1854
Comments
Same issue here with
|
@huineng and @uniquejava - do your tsconfig.json files have {
"compilerOptions": {
"skipLibCheck": true
}
} Wondering if your projects are unnecessarily checking types in your dependency on Your projects generally shouldn't need these type declarations unless you are directly using those types. |
i have skipLibCheck set to false. And i have installed topojson-specification to avoid compilation issues. My opinion is that dev dependencies are used during development. So you develop , build and publish and the dependencies should no longer be needed. But you publish the package with the dependency, and so for us doing further development on carbon charts, we do need to have that package installed. As npm does not install dev dependencies from 3th parties, we have to do it ourselves. So whatever code you publish that contains a dependency on another package, should include that package as a dependency. Thanks |
Thanks for your help. No, I don't use these types in my hello world project. When run
Relevant logs:
|
Hi @huineng - since we publish the .d.ts files that reference some of those types, it's fair to say they should be dependencies. I have an open PR that I added them to. |
Relevant package(s)
Carbon Charts Version
1.16.8
Which bundler are you using?
Webpack
What happened and what did you expect to happen?
I guess this is related to this change
carbon-charts/packages/core/src/interfaces/charts.ts
Line 1 in a43f0eb
the package dev dependencies are not install by npm (only the dependencies or unless i install them myself in my main package) (see this thread microsoft/types-publisher#81 (comment)
Is it possible to move @types/topojson to dependencies or to explicitly mention we have to install them
thanks
this was the error
last working version was @carbon/[email protected]
The text was updated successfully, but these errors were encountered: