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

Help: Gatsby theme brain fails if any folder within the content folder #5

Closed
thisizkp opened this issue May 31, 2020 · 5 comments
Closed

Comments

@thisizkp
Copy link
Contributor

Hi, @aravindballa thanks for the amazing project.

I'm using Obsidian as my note-taking tool to capture those ideas locally. The way I've set up Obsidian is to read everything from the content folder so that I can see those graphs and connections.

Obsidian generates a .obsidian directory for config related things. Even though it's a hidden directory, I think gatsby-theme-brain is trying to generate queries from the hidden directory. Because it's a directory and not a file, it's throwing an error saying that it is an illegal operation.

I'm not sure if gatsby-theme-andy has any other config where could change/modify things a bit or if we should raise this issue in gatsby-theme-brain or gatsby.

I have noticed that notes.aravindballa.com uses obsidian too. As there is a mention of that in the .gitignore.

For now, when I'm doing any development... I'm deleting the config directory when I'm writing I'm putting in back. But it can become a boring chore too. I'm curious if others having any similar issues or found any ways to solve it. So posting it here in this repo.

@aravindballa
Copy link
Owner

Updating to the latest version of gatsby-theme-brain fixes this as well. You can upgrade the latest version of this theme v0.1.4 and have files other than markdown (.obsidian in our case).

Closing this.

@thisizkp
Copy link
Contributor Author

thisizkp commented Jun 2, 2020

@aravindballa even after updating the deps, I'm facing an issue with the build.

"@aengusm/gatsby-theme-brain" threw an error while running the sourceNodes lifecycle:
10:11:30 AM: content.matchAll(...) is not a function or its return value is not iterable

any idea what's the issue is with?

@aravindballa
Copy link
Owner

Can you help me reproduce this? I use Obsidian too, so I have .obsidian in ./content.

@thisizkp
Copy link
Contributor Author

thisizkp commented Jun 2, 2020

Found the solution. It is happening because of the recent upgrade of gatsby-theme-brain.

It requires Node v12 for gatsby-theme-brain to work

I think we should mention the same in this project ReadMe too so that users will not face the above issue. :)

@aravindballa
Copy link
Owner

Ah yes. Will add that. Thanks :)

This issue was closed.
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

No branches or pull requests

2 participants