travis-r6s / gridsome-plugin-flexsearch

Add lightning fast search to Gridsome with FlexSearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy to Netlify

tomasgil123 opened this issue · comments

Im using gridsome-plugin-flexsearch and it works locally, but when I try to deploy it to Netlify I get the following error:
image

Im including gridsome-plugin-flexsearch like this in gridsome.config.js

plugins: [
      {use: 'gridsome-plugin-flexsearch',
    options: {
    collections: [
        {
            typeName: 'BookEntry',
            indexName: 'BookEntry',
            fields: ['id', 'title', 'access']
        },

    ],
        searchFields: ['title']
}}
,

Any ideas to solve it?

Could I check what version of gridsome + this plugin you are using?

These are my dependencies:

"dependencies": {
    "@gridsome/plugin-google-analytics": "^0.1.0",
    "@gridsome/plugin-sitemap": "^0.2.1",
    "@gridsome/remark-prismjs": "0.0.6",
    "@gridsome/source-filesystem": "^0.6.0",
    "@gridsome/transformer-remark": "^0.3.4",
    "axios": "^0.19.0",
    "gridsome": "^0.7.0",
    "gridsome-plugin-algolia": "^2.1.1",
    "gridsome-plugin-flexsearch": "^0.1.5",
    "netlify-identity-widget": "^1.5.5",
    "typeface-source-sans-pro": "^0.0.54",
    "vue-feather-icons": "^4.22.0",
    "vuex": "^3.1.1"
  },
  "devDependencies": {
    "node-sass": "^4.12.0",
    "sass-loader": "^7.1.0",
    "style-resources-loader": "^1.2.1"
  }

Thanks - I think it is probably because gridsome changed the api recently (from config.outDir to config.outputDir) so I will add a fallback for that.

ok, thanks!

Just published v0.1.6... Let me know if that fixes it?

yep, it worked. Thanks man!