question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with Angular 9

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
michalhornak22commented, Dec 21, 2020

up and running, thx very much 😃

1reaction
mihar-22commented, Dec 21, 2020

Okay I’m going to revert 5.0.17, seems useless. Really glad it’s all working now 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 9 Application Not running on IE11 - Stack Overflow
As I can see in your polyfills.js file, you have added the import for @angular/localize/init, which does not support for the IE11 browser...
Read more >
Lazy-loading feature modules - Angular
By default, NgModules are eagerly loaded. This means that as soon as the application loads, so do all the NgModules, whether they are...
Read more >
How To Update Angular CLI To Latest Version
Go to the website and select your Angular version and the version you wanted to update, it will show the series of recommendations....
Read more >
Embedded Service not working correctly with Angular 9+ (Ivy ...
A suggested chage was to disable Angular's Ivy engine. I prefer not to do that as we'd loose all the benifets of running...
Read more >
Add Bootstrap 5 to Angular 15 with example & tutorial
We'll also build a complete working Angular UI styled with Bootstrap as ... Let's get started by installing Angular CLI v15 if it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found