Open YUHAI0 opened 2 weeks ago
Hello!
It seems like the problem is with the TypeScript, but usually these errors are caused by conflicts or older versions... Have you tried removing both the node_modules
folder and package-lock.json
file, and doing a fresh install? It often solves all my problems with that type of errors...
I hope this helps you!
EDIT: And be careful with the npm audit fix... it usually messes up all your environment.
Hello!
It seems like the problem is with the TypeScript, but usually these errors are caused by conflicts or older versions... Have you tried removing both the
node_modules
folder andpackage-lock.json
file, and doing a fresh install? It often solves all my problems with that type of errors...I hope this helps you!
EDIT: And be careful with the npm audit fix... it usually messes up all your environment.
it because the xgplayer newly version has build problem, I lock to version 3.0.14 solve this problem.
Hi, this issue has already been fixed
I start client with npm install &&npm start wich node version 14.21.3 and npm version 6.14.18 in Linux, it appear with these error:
Error: node_modules/xgplayer/es/plugins/common/optionsIcon.d.ts:17:5 - error TS2416: Property 'show' in type 'OptionsIcon' is not assignable to the same property in base type 'Plugin'. Type '(value?: string) => void' is not assignable to type '(value?: string) => string'. Type 'void' is not assignable to type 'string'.
17 show(value?: string): void;
Error: node_modules/xgplayer/es/plugins/progress/index.d.ts:57:5 - error TS2416: Property 'show' in type 'Progress' is not assignable to the same property in base type 'Plugin'. Type '(value?: string) => void' is not assignable to type '(value?: string) => string'. Type 'void' is not assignable to type 'string'.
57 show(value?: string): void;
Error: node_modules/xgplayer/es/plugins/replay/index.d.ts:15:5 - error TS2416: Property 'show' in type 'Replay' is not assignable to the same property in base type 'Plugin'. Type '(value?: string) => void' is not assignable to type '(value?: string) => string'. Type 'void' is not assignable to type 'string'.
15 show(value?: string): void;
Error: node_modules/xgplayer/es/plugins/time/index.d.ts:20:5 - error TS2416: Property 'show' in type 'Time' is not assignable to the same property in base type 'Plugin'. Type '(value?: string) => void' is not assignable to type '(value?: string) => string'. Type 'void' is not assignable to type 'string'.
20 show(value?: string): void;