Skip to content

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.

let resolvedPath;
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.

1 participant