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

Getting template path can error if two versions imported #299

Closed
Badgerati opened this issue Apr 4, 2022 · 0 comments · Fixed by #325
Closed

Getting template path can error if two versions imported #299

Badgerati opened this issue Apr 4, 2022 · 0 comments · Fixed by #325
Assignees
Labels
bug 🐛 Something isn't working
Milestone

Comments

@Badgerati
Copy link
Owner

In Get-PodeWebTemplatePath, if there are some how 2 versions of Pode.Web imported, then there will be two module paths returned causing the function to error.

Once fix could be to using Sort-Object on the version and then Select-Object -First to just get one path. I'm also wondering if there's perhaps a better way of getting the currently being used Pode.Web's module path 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant