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.

I’m getting the following error when building my project since adding this library:

ERROR in : Unexpected value 'LoggerTestingModule in /media/ssd/gitlab-ci/builds/d2697ae0/0/mat/mat-client-ts/node_modules/ngx-logger/ngx-logger.d.ts' imported by the module 'TestingModule in /media/ssd/gitlab-ci/builds/d2697ae0/0/mat/mat-client-ts/src/app/testing.module.ts'. Please add a @NgModule annotation.

I have my own testing module which I use for most common imports. The above error is a result of attempting to import LoggerTestingModule to that module.

I’m using version 3.4.5 of the library. Angular CLI 6.2.1, Node 8.12.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
viceicecommented, Jul 18, 2019

found it: https://github.com/ng-packagr/ng-packagr/issues/195

i can send a pr to fix that

0reactions
viceicecommented, Jul 19, 2019

Thanks for fast publishing the fix. 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Identify and Fix Build and Deployment Errors in Your Angular ...
In this guide, you will learn how to spot some of the most common build and deployment errors and how to resolve them...
Read more >
angular - build error while using ng build - Stack Overflow
You need to cd into that newly created directory. cd DIRECTORY_NAME_HERE. Then you can do: ng build ng serve // etc.
Read more >
Angular CLI ng build fails - Visual Studio Feedback
0 application to compile and I just cant. My setup is: An NPM task with custom command to install the angular cli, command:...
Read more >
ng build error: Invalid version: "15.2-15.3" #22606 - GitHub
When i build project with Angular CLI, I get this error: An unhandled exception occurred: Transform failed with 1 error: error: Invalid version: ......
Read more >
Toolips ng build –prod error - MDBootstrap
when I was trying to build production of my project we got this error: in Error: TypeError: Cannot read property 'kind' of undefined...
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