Skip to content
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

Fixed issue with logger being called on validate #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matteozambon89
Copy link

This is the error I fixed:

debug: trailpack: validating footprints
TypeError: Cannot read property 'warn' of undefined
    at FootprintsTrailpack.validate (/Users/Matteo/Developer/projects/Yeeti/Hamsa/hamsa-api-server/node_modules/trailpack-footprints/index.js:23:19)
    at app.after.then.then (/Users/Matteo/Developer/projects/Yeeti/Hamsa/hamsa-api-server/node_modules/trails/lib/Core.js:188:24)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)
    at Function.Module.runMain (module.js:703:11)
    at startup (bootstrap_node.js:190:16)
    at bootstrap_node.js:662:3
(node:30120) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'warn' of undefined
    at FootprintsTrailpack.validate (/Users/Matteo/Developer/projects/Yeeti/Hamsa/hamsa-api-server/node_modules/trailpack-footprints/index.js:23:19)
    at app.after.then.then (/Users/Matteo/Developer/projects/Yeeti/Hamsa/hamsa-api-server/node_modules/trails/lib/Core.js:188:24)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)
    at Function.Module.runMain (module.js:703:11)
    at startup (bootstrap_node.js:190:16)
    at bootstrap_node.js:662:3

This is the error I fixed:
```
debug: trailpack: validating footprints
TypeError: Cannot read property 'warn' of undefined
    at FootprintsTrailpack.validate (/Users/Matteo/Developer/projects/Yeeti/Hamsa/hamsa-api-server/node_modules/trailpack-footprints/index.js:23:19)
    at app.after.then.then (/Users/Matteo/Developer/projects/Yeeti/Hamsa/hamsa-api-server/node_modules/trails/lib/Core.js:188:24)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)
    at Function.Module.runMain (module.js:703:11)
    at startup (bootstrap_node.js:190:16)
    at bootstrap_node.js:662:3
(node:30120) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'warn' of undefined
    at FootprintsTrailpack.validate (/Users/Matteo/Developer/projects/Yeeti/Hamsa/hamsa-api-server/node_modules/trailpack-footprints/index.js:23:19)
    at app.after.then.then (/Users/Matteo/Developer/projects/Yeeti/Hamsa/hamsa-api-server/node_modules/trails/lib/Core.js:188:24)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)
    at Function.Module.runMain (module.js:703:11)
    at startup (bootstrap_node.js:190:16)
    at bootstrap_node.js:662:3
```
@matteozambon89
Copy link
Author

@tjwebb let me know if this fix can be released 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant