Node-vibrant: 3.1.5 fails angular (typescript) build

Created on 28 Nov 2019  ·  4Comments  ·  Source: Vibrant-Colors/node-vibrant

ERROR in node_modules/node-vibrant/lib/color.d.ts(19,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/node-vibrant/lib/color.d.ts(20,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/node-vibrant/lib/color.d.ts(21,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/node-vibrant/lib/color.d.ts(22,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/node-vibrant/lib/color.d.ts(23,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/node-vibrant/lib/color.d.ts(24,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/node-vibrant/lib/color.d.ts(25,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/node-vibrant/lib/color.d.ts(37,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/node-vibrant/lib/color.d.ts(38,9): error TS1086: An accessor cannot be declared in an ambient context.

awaiting feedback bug

All 4 comments

I am also getting this error on trying to run a prod build.

I think this is due to angular cli not being compatible with ts 3.7, until they update it you'll have to use ts <=3.5.3, so I had to roll back my TS to 3.5.3 and vibrant to 3.1.4

Is this the case with Angular 9, does anyone know? I know they support TS3.7 now

hey I just discovered this nice lib. I haven't used it in a project, but if it's true that the bug is related to typescript version it should be resolved now. I've been compiling angular 9 project with typescript 3.8 for a few weeks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nitriques picture nitriques  ·  12Comments

asela-wijesinghe picture asela-wijesinghe  ·  4Comments

lucafaggianelli picture lucafaggianelli  ·  9Comments

chetstone picture chetstone  ·  14Comments

glomotion picture glomotion  ·  5Comments