Not working with Angular 9
See original GitHub issueI’m using Angular V9.1.11, and i tried to use the latest version of vime but it gives an error as you can see below :
Compiling @vime/angular : module as esm5
Warning: Invalid constructor parameter decorator in D:/Projects/My Project/My-Project/node_modules/@vime/angular/dist/fesm2015/vime-angular.js:
() => [
{ type: ChangeDetectorRef },
{ type: ElementRef },
{ type: NgZone }
]
Error: Error on worker #1: Error: getInternalNameOfClass() called on a non-ES5 class: expected VimeAudio to have an inner class declaration
at Esm5ReflectionHost.getInternalNameOfClass (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\ngcc\src\host\esm5_host.js:88:23)
at DelegatingReflectionHost.getInternalNameOfClass (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\ngcc\src\host\delegating_host.js:89:34)
at Object.extractDirectiveMetadata (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\src\ngtsc\annotations\src\directive.js:237:69)
at ComponentDecoratorHandler.analyze (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\src\ngtsc\annotations\src\component.js:143:47)
at NgccTraitCompiler.TraitCompiler.analyzeTrait (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\src\ngtsc\transform\src\compilation.js:345:40)
at analyze (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\src\ngtsc\transform\src\compilation.js:297:58)
at _loop_1 (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\src\ngtsc\transform\src\compilation.js:319:21)
at NgccTraitCompiler.TraitCompiler.analyzeClass (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\src\ngtsc\transform\src\compilation.js:325:35)
at NgccTraitCompiler.analyzeFile (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\ngcc\src\analysis\ngcc_trait_compiler.js:47:26)
at DecorationAnalyzer.analyzeProgram (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\ngcc\src\analysis\decoration_analyzer.js:134:39)
at ClusterMaster.onWorkerMessage (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\ngcc\src\execution\cluster\master.js:194:27)
at D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\ngcc\src\execution\cluster\master.js:54:95
at ClusterMaster.<anonymous> (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\ngcc\src\execution\cluster\master.js:292:57)
at step (D:\Projects\My Project\My-Project\node_modules\tslib\tslib.js:140:27)
at Object.next (D:\Projects\My Project\My-Project\node_modules\tslib\tslib.js:121:57)
at D:\Projects\My Project\My-Project\node_modules\tslib\tslib.js:114:75
at new Promise (<anonymous>)
at Object.__awaiter (D:\Projects\My Project\My-Project\node_modules\tslib\tslib.js:110:16)
at EventEmitter.<anonymous> (D:\Projects\My Project\My-Project\node_modules@angular\compiler-cli\ngcc\src\execution\cluster\master.js:286:32)
at EventEmitter.emit (events.js:314:20)
An unhandled exception occurred: NGCC failed.
See “C:\Users\saber\AppData\Local\Temp\ng-KmWmwL\angular-errors.log” for further details.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file C:\Windows\system32\cmd.exe
npm ERR! errno ENOENT
npm ERR! angular-electron@7.2.1 ng:serve: ng serve
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the angular-electron@7.2.1 ng:serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\saber\AppData\Roaming\npm-cache_logs\2020-11-30T14_36_06_880Z-debug.log
ERROR: “ng:serve” exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular-electron@7.2.1 start: npm-run-all -p electron:serve ng:serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-electron@7.2.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\saber\AppData\Roaming\npm-cache_logs\2020-11-30T14_36_06_999Z-debug.log
I’ve tried version 4.2.2 just to see if things gonna work, but nothing
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (6 by maintainers)

Top Related StackOverflow Question
up and running, thx very much 😃
Okay I’m going to revert
5.0.17, seems useless. Really glad it’s all working now 😄