-
Notifications
You must be signed in to change notification settings - Fork 1
Bug: Undefined errors while attempting to create new index #12
Comments
Thanks for the report! Yep, this was an issue from my last refactor. I put up a bug fix that I think should resolve this in a patch version, so if you try using version |
Hmm thanks Reese, that seems to have solved the first part of the issue. Now I seem to be getting:
The intermediate toml file seems to be correct, not sure then why this seems to be happening with the plugin? Would appreciate any help out here! Also, Is there any project of yours/any other public project that currently uses this plugin - could you link to it if so, for reference configs? |
That's an error actually coming from (And as a side note for myself, I should add something about Unfortunately the project I'm using this for still isn't public right now, and I'm not totally sure who else is using this extension since I mostly just made it for myself 😅 Of course my project also uses a pretty standard Gatsby setup, so it just uses the default configuration for this project. |
These are the configs i'm using currently, very similar to the default one's that you linked to (only that i added filetype just now):
With filetype, i get this:
Is this plugin passing all props that stork accepts - https://stork-search.net/docs/config-ref - especially filetype for now for specificity? If it's not too much, can you add it? I'm actually also wondering why should stork need filetype in the first place when we are passing contents altogether (jameslittle230/stork#163), since with path it makes sense to require filetype for it to determine parsing strategy etc for relevant file extensions. But with passing contents (Btw I am passing contents because for my case all these text contents are present in nodes rather than Mdx blog files etc), that first step is already done for it by me as the client, and all it should do is tokenize it and index it ideally. |
For the error from the plugin, that's just because your resolver needs to be a function: As for config, this plugin doesn't currently support them all yet. I have a ticket (#2) to support them eventually, but if you have any in particular that you need, you can comment on that issue and I can try to prioritize them. PRs are also welcome if I don't get to it soon enough. |
I'm happy to keep helping out in this thread, but I'm going to close out the issue here since the original issue is now resolved. |
Bravo @reese , that seemed to work -- thank you so much! :) Do you think this little detail of all params that are currently supported by the plugin, and what type/schema their values should be of (possibly with an example) should be there in the README? That might help for future users of the plugin! Other than that, I understand this might be a bit orthogonal from what the issue was opened for. I don't want to re-open this, but would appreciate if you could help with this! @reese
|
That functionality you're describing should be how the plugin already works. It just looks up the resolvers by the |
The node names are correct I validated them again. But for some weird reason the plugin was continuing to build only on a single node type even when i ran gatsby develop/gatsby build again (even though other plugins were updating just fine). I just ran gatsby clean and re-built using gatsby develop - it then seemed to work fine with the correct behaviour - taking both node types into account. Thank you for the help, this seems to work fine now! :) One small thing though that I noticed @reese : when using |
There isn't a config for using withPrefix at the moment, although I think that might be a nice config addition. If you want to make a separate Feature Request issue to track that, I can look into adding it at some point. |
There you go opened a new feature request - #13 ! Thanks! |
Btw just checking in on have you tried running this plugin with stork in a CI build? I'm trying to use github actions, see workflow below, and i've tried add installed stork to path as well, still
This is the error I get:
Any ideas on how can the plugin start detecting stork from a specific path in the CI build? @reese |
This plugin currently doesn't have CI support -- see #9 for the work needed for that. Feel free to comment there if you have a specific features for that if you'd like. |
Ahhh! Would really hope if this can be supported sooner than other features lined up from gh issues @reese ! CI builds would be kind of a huge need for almost about everyone who uses the plugin, as you also mention in the linked issue. |
That is currently the highest-priority issue, although for full transparency I probably won't have time to do the work for it until at least next week (although I'm happy to review PRs 🙂). In the short term, given that it it looks like you already have |
aliases don't seem to work with github actions for some weird reason :/ apparently this is the only closest thing i found - https://github.community/t/create-and-use-an-alias-inside-github-action/147616 @reese |
Hi Reese @reese ,
Thank you so much for creating this plugin! 👏 I was trying to use this in my Gatsby site, and was unfortunately running into few internal errors from the plugin.
This is my configuration for the gatsby plugin. I have ensured and validated from Gatsby's GraphQL explorer that the below fields exist correctly for nodes of type
annotations
:And for some reason, i keep on running into this exception below - which seems related to this line:
I tried to oversimplify the config above to this subsequently, i.e, just hardcoded strings - and even then I'm running into the same exception as above. Surely if there was some issue with my nodes configuration above and if that might have been resulting in the exception above, then it should have succeeded here:
Would really appreciate if you could help with this? If you need any other blob of local nodes or other related configs from my end for looking into this, please let me know.
Thanks! :)
The text was updated successfully, but these errors were encountered: