darekf77 / ng2-logger

Isomorphic logger for Browser and NodeJS, ( typescript / javascript ) apps
MIT License
61 stars 17 forks source link

Add Logger to index #28

Closed RicardoJBarrios closed 6 years ago

RicardoJBarrios commented 6 years ago

Hello.

I'm trying to use ng2-logger (v2.0.26) in a personal library, but each time I try to compile it with Rollup I get this error:

error TS4029: Public property 'log' of exported class has or is using name 'Logger' from external module "[...]/node_modules/ng2-logger/logger" but cannot be named.

I tried adding export * from './logger'; to index.d.ts and __export(require("./logger")); to index.js and it all worked.

Thanks a lot for the library.

darekf77 commented 6 years ago

Hi Ricardo, thank you very much. This thing is fixed in new version.

I am super happy that this library is useful for someone... Have a wonderful day!