Encountering a build error after upgrading to Calcite 2.8.0 in a project and then referencing Calcite's components.d.ts file in the project's tsconfig.json:
Check out the GitHub repo at the calcite-2.8.0-type-fest-build-error tag
Run npm i
Run npm run build and should see error here
Reproduction Version
2.8.0
Relevant Info
[ ERROR ] TypeScript: node_modules/@esri/calcite-components/dist/types/utils/form.d.ts:2:10
Module '"type-fest"' has no exported member 'Writable'.
L1: import { FunctionalComponent } from "../stencil-public-runtime";
L2: import { Writable } from "type-fest";
L3: import { Status } from "../components";
[21:11.6] build failed in 1.58 s
Regression?
2.7.1
Priority impact
p1 - need for current milestone
Impact
Workarounds appear to be to either enable skipLibCheck or add the type-fest dependency explicitly.
Check existing issues
Actual Behavior
Encountering a build error after upgrading to Calcite 2.8.0 in a project and then referencing Calcite's
components.d.ts
file in the project'stsconfig.json
:Expected Behavior
No build error.
Reproduction Sample
https://github.com/nwhittaker/stencil-component
Reproduction Steps
calcite-2.8.0-type-fest-build-error
tagnpm i
npm run build
and should see error hereReproduction Version
2.8.0
Relevant Info
Regression?
2.7.1
Priority impact
p1 - need for current milestone
Impact
Workarounds appear to be to either enable
skipLibCheck
or add thetype-fest
dependency explicitly.Calcite package
Esri team
ArcGIS Field Apps