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.

Angular-CLI/Webpack Compiling Error

See original GitHub issue

Getting an error when compiling with Angular-CLI

ERROR in Error encountered resolving symbol values statically. Calling function 'InjectionToken', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol HotkeyOptions in /Users/username/git/foo/node_modules/angular2-hotkeys/src/hotkey.options.d.ts, resolving symbol HotkeyModule.forRoot in /Users/username/git/foo/node_modules/angular2-hotkeys/index.d.ts, resolving symbol AppModule in /Users/username/git/foo/src/app/app.module.ts, resolving symbol AppModule in /Users/username/git/foo/src/app/app.module.ts
webpack: Failed to compile.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

brtnshrdrcommented, Feb 17, 2017

You must stay on the 1.x.x version if you’re using angular 2.x.x. Only switch to the 2.x.x versions of you are using angular beta.4. (check the github release tags for the current versions of this project). That issue though is unrelated to the reported one.

brentchowcommented, Feb 28, 2017

v1.0.3 worked for me. ie:

yarn add angular2-hotkeys@1.0.3
Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular: ng serve gives "webpack: Failed to compile"
This is a bug, caused by the folder whose name starts with an exclamation mark in the path to the project:
Read more >
Web pack failed to compile · Issue #13799 · angular/angular-cli
ERROR in Could not resolve module...... Command. ng build; ng serve. Description. I cloned working angular 4 project.
Read more >
Angular compiler options
See troubleshooting template errors. When you use the Angular CLI command ng new --strict , it is set to true in the new...
Read more >
Angular - Code with Mosh Forum
Hello guys, I am having this error for 2 days now and I can't find a ... Error: Failed to initialize Angular compilation...
Read more >
Angular 4webpack: Failed to compile. when start the app (i.e ...
I would upgrade all dependencies to their latest versions. remove node_modules and npm install again. Regards Sander.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found