После установки vega 5.13.0
и vega-lite 4.13.1
в проекте Angular 8
при запуске приложения с ng serve
ERROR в node_modules / vega-lite / build / src возникают следующие ошибки /compile/compile.d.ts:68:73 - ошибка TS2315: Тип GenericSpe c не является универсальным c.
68} & LayoutSizeMixins) | (import ("../ spec / concat"). GenericConcatSpe c> & TopLevelProperties & {~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules / vega-lite / build /src/compile/compile.d.ts:73:67 - ошибка TS2315: Тип GenericSpe c не является универсальным c.
73} & LayoutSizeMixins) | (import ("../ spe c"). GenericVConcatSpe c> & TopLevelProperties & {~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules / vega-lite / build / src / compile / compile.d.ts: 78: 67 - ошибка TS2315: Тип GenericSpe c не является общим c.
78} & LayoutSizeMixins) | (import ("../ spe c"). GenericHConcatSpe c> & TopLevelProperties & {~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Как воспроизвести:
- используя Angular 8 cli, 'ng new mytestapp'
- npm install vega --save
- npm install vega-lite --save
- npm install vega-embed --save
- добавить импорт в app.component.ts (import embed, {VisualizationSpec} from 'vega- вставлять ';)
- cd mytestapp
- ng serve