mklueh / gridsome-plugin-recommender

Improve user´s average time on page of your Gridsome site by automatically finding related posts or products. Uses machine learning to determine recommendations of all kind, be it other posts, context-related ads, related products in your shop, affiliate products and more.
https://overflowed.dev/blog/building-a-gridsome-plugin-for-related-posts?utm_medium=github&utm_source=details
MIT License
13 stars 2 forks source link

@gridsome/vue-remark support #5

Open roiscamp opened 4 years ago

roiscamp commented 4 years ago

As per the documentation in the readme, the plugin should work with @gridsome/vue-remark as a source, but I have been doing some attempts to make it work and get the following error:

Initializing plugins...
gridsome-plugin-recommender:  training 4
gridsome-plugin-recommender:  Fetching relations for document 376f652e3a2f627f81710842c9d44ee3
TypeError: expected input to be a string or buffer

Could an example on how to configure the plugin to work with vue-remark be provided?

mklueh commented 4 years ago

Hi @roiscamp

I'm not sure if it works tbh, I wrote it under the assumption that source-filesystem and vue-remark both work similarly but it seems that vue-remark stores it's data quite differently.

I need to look into it and remove it from the readme for now.

Thank you

mschmidtkorth commented 3 years ago

Hi @mklueh - thanks for this fantastic plugin! As this issue is blocking the usage with vue-remark, are you actively working on vue-remark support or looking for a pull request?

mklueh commented 3 years ago

Hi @mschmidtkorth , thanks, nice to hear :) I´m not actively working on this issue and tbf I´m not sure how one would solve it "the right way". Vue Remark doesn´t work on the GraphQL layer as far as I remember.

If you have any good solution and are willing to contribute it would be very welcomed :)