Skip to content

davidlj95/glidejs-types-minimal-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glide.js Typescript modular types error

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 to false

outDir has also been changed to dist so that output files are ignored. But nothing relevant for the issue.

About

Minimal reproduction for Glide.js modular build types

Topics

Resources

Stars

Watchers

Forks