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

fix: fix logic for resolving path to themes #578

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

Conversation

notslang
Copy link

I was getting errors when specifying a path to a theme that begins with a dot because path.join wasn't a function. I renamed the existing path var to resolvedPath and imported the path module that path.join comes from.

if (themePath[0] === '.') {
path = tryResolve(path.join(cwd, themePath), { paths: [cwd] });
throw new Error(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really know why there was a throw here. It seems like it would always fail for a path that begins with a dot. I removed that to make it work.

@notslang notslang changed the title fix logic for resolving path to themes fix: fix logic for resolving path to themes May 12, 2021
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.

None yet

1 participant