Comments (5)
$ nodejs -v
v10.19.0
Sorry for the false alarm. I trusted the version bundled with Ubuntu 20.04 to be a recent version.
from gridsome-plugin-flexsearch.
Config:
// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config
// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`
module.exports = {
siteName: 'Gridsome',
siteDescription: "An open-source framework to generate awesome pages",
plugins: [
{
use: 'gridsome-plugin-tailwindcss',
options: {
tailwindConfig: './tailwind.config.js',
purgeConfig: {
whitelist: ['svg-inline--fa', 'table', 'table-striped', 'table-bordered', 'table-hover', 'table-sm'],
whitelistPatterns: [/fa-$/, /blockquote$/, /code$/, /pre$/, /table$/, /table-$/, /vueperslide$/, /vueperslide-$/]
},
presetEnvConfig: {},
shouldPurge: false,
shouldImport: true,
shouldTimeTravel: true,
shouldPurgeUnusedKeyframes: true,
}
},
{
use: 'gridsome-source-static-meta',
options: {
path: 'content/site/*.json'
}
},
{
use: '@gridsome/source-filesystem',
options: {
typeName: 'Author',
path: './content/author/*.md'
}
},
{
use: '@gridsome/source-filesystem',
options: {
typeName: 'Blog',
path: './content/blog/**/*.md',
refs: {
author: 'Author',
tags: {
typeName: 'Tag',
create: true
},
category: {
typeName: 'Category',
create: true
}
}
}
},
{
use: '@gridsome/source-filesystem',
options: {
typeName: 'CustomPage',
path: './content/pages/*.md'
}
},
{
use: 'gridsome-plugin-flexsearch',
options: {
searchFields: ['title', 'content'],
collections: [{
typeName: 'Blog',
indexName: 'Blog',
fields: ['title', 'category', 'excerpt', 'content']
}]
}
}
],
transformers: {
remark: {
plugins: [
'remark-autolink-headings',
'remark-attr',
['gridsome-plugin-remark-prismjs-all', {
noInlineHighlight: false,
showLineNumbers: false,
}],
require('./packages/gridsome-plugin-remark-figure')
],
processImages: false
}
},
templates: {
Blog: [{
path: '/posts/:title'
}],
CustomPage: [{
path: '/:title',
component: '~/templates/CustomPage.vue'
}],
Category: [{
path: '/category/:title',
component: '~/templates/Category.vue'
}],
Author: [{
path: '/author/:name',
component: '~/templates/Author.vue'
}],
Tag: [{
path: '/tags/:title',
component: '~/templates/Tag.vue'
}]
},
chainWebpack: config => {
config.resolve.alias.set('@pageImage', '@/assets/images');
}
}
from gridsome-plugin-flexsearch.
I'm able to reproduce this with a fresh gridsome install using the 'gridsome-starter-liebling' theme. No changes, just install and run gridsome develop
from gridsome-plugin-flexsearch.
Hi @vootrunner ,
i'm not able to reproduce the issue.
Tested it with the mentioned starter ( used also a fresh install ).
Both CLI commands ( gridsome develop
and gridsome build
) are working without any errors.
Here my gridsome info
output:
gridsome info
System:
OS: macOS 10.15.5
CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
Binaries:
Node: 13.10.1 - /usr/local/bin/node
npm: 6.14.5 - /usr/local/bin/npm
Browsers:
Chrome: 83.0.4103.116
Safari: 13.1.1
npmPackages:
@gridsome/source-filesystem: ^0.6.2 => 0.6.2
@gridsome/transformer-remark: ^0.6.0 => 0.6.0
gridsome: ^0.7.17 => 0.7.17
gridsome-plugin-flexsearch: ^1.0.1 => 1.0.1
gridsome-plugin-remark-prismjs-all: ^0.3.5 => 0.3.5
gridsome-plugin-tailwindcss: ^2.2.48 => 2.2.48
gridsome-source-static-meta: github:noxify/gridsome-source-static-meta#master => 1.0.1
npmGlobalPackages:
@gridsome/cli: 0.3.3
from gridsome-plugin-flexsearch.
Hey @vootrunner - what version of Node are you using? This plugin requires at least v12.
Object.fromEntries
is not available in earlier versions of Node.
from gridsome-plugin-flexsearch.
Related Issues (20)
- Error when manually fetching flexsearch.json after upgrading to version 1.0.1 HOT 2
- Image src is wrong HOT 7
- Getting Object.fromEntries is not a function when deploying in Netlify HOT 4
- Problem configuring FlexSearch HOT 2
- Field date HOT 2
- Tags object HOT 2
- Not work with Cyrillic HOT 1
- Deal with custom field resolvers HOT 1
- Is there a way to search by a nested object value? HOT 4
- Only certain fields are successfully added to the Flexsearch Index, despite configuration HOT 2
- Results effected by searchFields order HOT 6
- Causes UnhandledPromiseRejectionWarning in @gridsome\source-filesystem HOT 3
- Using Gridsome-graphql-source with flexsearch not workin HOT 2
- How to make it work with Contentful Source HOT 2
- Asking for a little help setting up with a section built with strapi HOT 1
- v2 Causes undefined Error HOT 7
- Cannot read property 'map' of undefined HOT 15
- Support callback function or regex in autoFetch HOT 2
- Not working with gridsome upgrade to 0.7.23 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gridsome-plugin-flexsearch.