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

Causes UnhandledPromiseRejectionWarning in @gridsome\source-filesystem #61

Open
vsimko opened this issue Nov 25, 2020 · 3 comments
Open
Assignees

Comments

@vsimko
Copy link

vsimko commented Nov 25, 2020

When flexsearch is enabled, it is not possible to edit markdown files and at the same time to see the content being hot-reloaded in the browser.

See this issue: gridsome/gridsome#1223

@SupremeSalvatore
Copy link

Any progress on this? Still cant manage to hot reaload content when i edit md files.

@vsimko
Copy link
Author

vsimko commented Mar 1, 2021

Here is a dirty workaround which disables flexsearch in dev mode:

{
  use: "gridsome-plugin-flexsearch",
  options: {
    searchFields: ["title", "subtitle", "excerpt", "tags", "content"],
    collections: process.env.NODE_ENV === "development" ? [] : collections,
    // ...
  }
};

@SupremeSalvatore
Copy link

Thanks for workaround @vsimko , like you mentioned its not happy solution since then you cant do flex search but in my case markdown is changed more often, so at least we can toggle it now.

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

3 participants