Splidejs / splide-extension-grid

The extension of Splide for creating grid.
MIT License
7 stars 14 forks source link

Error using Grid in Angular #15

Closed juan-leal closed 2 years ago

juan-leal commented 2 years ago

Checks

Version

4.0.7

Description

After installing and deploying the Grid extension for Splide, the angular application fails to compile because it returns the following error.

Error: node_modules/@splidejs/splide-extension-grid/dist/types/extensions/Grid/Grid.d.ts:11:9 - error TS2411: Property 'Grid' of type 'GridComponent | undefined' is not assignable to 'string' index type 'BaseComponent'.

I tried adding a //ts-ignore before the Grid declaration and it compiles, but it doesn't work correctly

Reproduction Link

No response

Steps to Reproduce

1.Install Angular

  1. Install Splidejs
  2. Install Splidejs Grid Extension ...

Expected Behaviour

I expected it to compile and work just fine like splidejs does without the extension.