-
Notifications
You must be signed in to change notification settings - Fork 154
Bug: Importing Common Index in Logger Folder raises Module Error #664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
first of all, thanks a lot for reporting the issue and also apologies for the delay in acknowledging it from our side. We have been busy at polishing the utilities to prepare for the launch. I have looked at the issue reported and I was able to reproduce it. I'll leave here a link to a repo where I was able to reproduce and document the steps for the person who will resolve the issue: https://github.com/dreamorosi/test-664 |
@dreamorosi I created a PR to import Utility components from |
|
Bug description
npm production
package of `powetools-logger' is breaking in 0.0.7, due to importing commons package in Logger.tstests
export that are part of the commons/indexExpected Behavior
0.0.7 version to work fine without
module error
whentests
folder are removed at the time of pruning for production-ready build(Or if the package
tests
being exported out of commons is needed, please rename the folder as pruning utilities like node-prune are trimming offtests
)Current Behavior
No Module Found Error when using Powertools Logger package
Possible Solution
tests
tests
needs to be exported, please rename the folder as pruning utilities like node-prune are trimming offtests
)Steps to Reproduce
npm install
project with"@aws-lambda-powertools/logger": "^0.7.0"
node-prune
using https://github.com/tj/node-pruneEnvironment
The text was updated successfully, but these errors were encountered: