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.

AoT v0.5.1 Module node_modules/angular2-logger/core has no exported member LOG_LOGGER_PROVIDERS

See original GitHub issue

AoT doesn’t seem to like:

import { Logger, LOG_LOGGER_PROVIDERS } from 'angular2-logger/core';

Errors with:

Error at /Users/phil/Documents/Projects/aot/src/app/app.module.ngfactory.ts:281:39: Module '"/Users/phil/Documents/Projects/node_modules/angular2-logger/core"' has no exported member 'LOG_LOGGER_PROVIDERS'.
Error at /Users/phil/Documents/Projects/aot/src/app/app.module.ngfactory.ts:732:44: Module '"/Users/phil/Documents/Projects/node_modules/angular2-logger/core"' has no exported member 'LOG_LOGGER_PROVIDERS'.

Angular 2.3.1 Typescript 2.0.10

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
philjones88commented, Dec 21, 2016

I’ve worked around it via:

import { Logger, Options, Level } from 'angular2-logger/core';

then inside my NgModule:

        Logger,
        { provide: Options, useValue: { level: Level.LOG } },

basically, manually doing what the LOG_LOGGER_PROVIDERS does

0reactions
langley-agmcommented, Mar 19, 2017

@vkniazeu Thanks for the feedback, I’m working on this issue atm, trying to find a way for both configurations to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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