Gitbook serve
preview: error RangeError: Maximum call stack size exceeded
The solution
https://github.com/GitbookIO/plugin-lunr/blob/master/README.md#limitations
lunr
This plugin provides a backend for the search plugin.
This plugin is a default plugin.
Disable this plugin
This is a default plugin and it can be disabled using a book.json
configuration:
{
"plugins": ["-lunr"]
}
Limitations
Lunr can’t index a huge book, by default the index size is limited at ~100ko.
You can change this limit by settings the configuration maxIndexSize
:
{
"pluginsConfig": {
"lunr": {
"maxIndexSize": 200000
}
}
}
Json is created in the root directory of the GitBook project, and the lunr
plug-in is disabled
$ vim book.json
$ ls
_book/ Chapter10/ Chapter3/ Chapter6/ Chapter9/
book.json Chapter11/ Chapter4/ Chapter7/ README.md
Chapter1/ Chapter2/ Chapter5/ Chapter8/ SUMMARY.md
$ cat book.json
{
"plugins": ["-lunr"]
}
Preview again to see if there are any errors
At this point, there is no problem with using gitbook serve
, but using gitbook build --gitbook=2.6.7
still gives an error.
Use gitbook Build –gitbook=2.6.7 Still gives an error
When using gitbook build
only, the error will not be reported, while when making gitbook
version, the error will be reported, indicating that lunr
plug-in is not disabled when making the version.
Therefore, this approach does not solve this reduced version of gitbook build
case.
Read More:
- JS uses the and or operator, and an error is reported: uncaught rangeerror: maximum call stack size exceeded
- xxx.multipart.MaxUploadSizeExceededException: Maximum upload size of 52428800 exceeded;
- [development tool] solve the error reported by postman: error: maximum response size reached
- Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / /_ book/gitbook/git
- Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / / book/gitbook/git
- ORA-01144: File size (39321600 blocks) exceeds maximum of 4194303 blocks
- [Solved] gitbook: node_modules\npm\node_modules\graceful-fs\polyfills.js:287
- Typeerror occurred during gitbook installation: cb.apply is not a function
- Solve the problem that TeamViewer reaches the maximum number of devices
- Typeerror in gitbook init: cb.apply is not a function solution
- Copying a param with shape torch. Size ([262, 2048]), parameter size does not match
- ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256,
- raise ValueError(‘Expected input batch_size ({}) to match target batch_size ({}).‘
- gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildPr
- Solve the problem that “figure size 640×480 with 1 axes” does not display pictures in jupyter notebook
- Solve the problem of import Cafe: runtimewarning: numpy.dtype Size changed, may indicate binary instability
- Differences between Java stack overflow ror and outofmemoryerror