Open ngmariusz opened 7 years ago
There are some problems with this configurations?
My understanding is that node module must in the commonjs format - not es6 or esnext.
I get the error:
rich-logger-decorator\src\index.ts:1
({"Object.
I'm having problems using the library as well... import { ClassLogger } from "rich-logger-decorator";
gives me the error Cannot find module 'rich-logger-decorator' on compilation, and import { ClassLogger } from "rich-logger-decorator/dist/src";
gives the same error @chetmurphy mentions above at runtime.
This error may be appeared when the npm isn't installed. Please add a plunker
Sure, here's a fresh angular cli project where i just try to add ClassLogger and it doesn't work. I think you need to compile your module to commonjs so it'll work with webpack (but I'm not an expert on these things).
+1 Not work import library. Cannot find module 'rich-logger-decorator'.
changing main in package.json does the trick: "main": "dist/src/index.js",
I have resolved the above mentioned issues, but I also changed the log output. I opened a PR.
Details: https://github.com/Roustalski/rich-logger-decorator/blob/master/README.md
Hi, How you make it work with
?