This is a minimal reproduction for an error that appears when using Glide.js in a modular fashion in Typescript. Install with pnpm install
, then run pnpm tsc
to compile the index.ts
file.
The error is this one:
node_modules/.pnpm/@types+glidejs__glide@3.6.5/node_modules/@types/glidejs__glide/dist/glide.modular.esm.d.ts:5:10 - error TS2395: Individual declarations in merged declaration 'Anchors' must be all exported or all local.
5 import { Anchors } from "../components/anchors";
~~~~~~~
Using last version of Glide, its types and Typescript (see package.json
for specific versions).
The only relevant tweak to Typescript default configuration (provided via tsc init
) is:
skipLibCheck
tofalse
outDir
has also been changed to dist
so that output files are ignored. But nothing relevant for the issue.