Comments (5)
This seems to be a known issue.
I have reproduced the problem. And I also tried to downgrade nodejieba to v2.4.2, It builds successfully. So you can pin nodejieba in your package.json to 2.4.2
(without ^
), until nodejieba (or CppJieba) fixed the issue.
from docusaurus-search-local.
The SIGSEGV
error is probably caused by nodejieba
which is a nodejs wrapper of c++ program.
Before I got time to investigate this problem, could you try to set language
to ['en']
(without 'zh'
), and see whether the problem still exists? Let me know if it works fine or not.
from docusaurus-search-local.
I changed language
to ['en']
, now it works fine (But I still have the demand of searching Chinese).
It seems that the problem is caused by nodejieba
.
from docusaurus-search-local.
Update:
Environment: the same as above, docker image node:14.15.3-alpine3.12
Initialize an empty docusaurus document project using:
npx @docusaurus/init@latest init my-website classic # docusaurus 2.0.0-alpha70
cd my-website
then follow docusaurus-search-local document to add search support:
yarn add @easyops-cn/docusaurus-search-local # v0.14.4
yarn add nodejieba #2.5.1
vi docusaurus.config.js # set search plugin and add Chinese language support by setting `language: ["en", "zh"],`
Last, build it:
yarn build
It still exit with SIGSEGV
error (The above steps work fine on my Mac).
from docusaurus-search-local.
Fixed by downgrading nodejieba to v2.4.2.
Thanks for your nice and patient reply๐!
from docusaurus-search-local.
Related Issues (20)
- Allow no defalut doc id HOT 5
- new request on add slash "/" for shortcut to focus on search input area
- When I have multi product docs, how to filter the search result? HOT 3
- Does nothing on v3.1.0 HOT 6
- removeDefaultStemmer option does not seems to work HOT 4
- ุน
- Error: Cannot mix different versions of joi schemas with Docusaurus 2.4.1 HOT 3
- pages index HOT 1
- Issues rebuilding site after modifying default docusaurus.config.js file HOT 2
- Building index in the development environment
- Index url
- (excluding results) Excluding results isn't working HOT 1
- Error: ENOENT: no such file or directory, open 'xxx\build\docs\v1\search-index-docs.json HOT 3
- Help about Intersecting searchContextByPaths HOT 1
- Invalid search result url with docusaurus 3.4.0 HOT 8
- Conditional search HOT 2
- No search results in localsearch. The search animation is on loop. HOT 1
- Search By Keywords matches multiple keywords as a single string
- Duplicate URLs for search results HOT 2
- Going to search results on headings seems to add the path twice HOT 1
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 docusaurus-search-local.