bug: Missing @types/sortablejs dependency #9505
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Maps SDK for JavaScript
Issues logged by ArcGIS SDK for JavaScript team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 2
Small fix or update, may require updates to tests.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Check existing issues
Actual Behavior
Calcite typings are using types from the Sortablejs library, for example in this file:
Yet,
@types/sortablejs
is not included as a "dependency" (it's as devDependency instead, and in the root monorepo package.json rather than calcite-components's package.json)This cause TypeScript errors for consumer of calcite package when they try to typecheck their app if they have
"skipLibCheck":false
in their tsconfig.json (otherwise, the type would get silently resolved toany
- not ideal)Expected Behavior
Since Calcite's types rely on Sortablejs types,
@types/sortablejs
must be made into a dependencyReproduction Sample
https://github.com/maxpatiiuk/calcite-missing-dependency
Reproduction Steps
git clone https://github.com/maxpatiiuk/calcite-missing-dependency
npm install
npx tsc
Reproduction Version
2.0.0
Relevant Info
See relevant articles:
Regression?
No response
Priority impact
impact - p3 - not time sensitive
Impact
No response
Calcite package
Esri team
ArcGIS Maps SDK for JavaScript
The text was updated successfully, but these errors were encountered: