Skip to content

Commit

Permalink
added graceful-fs to patch fs
Browse files Browse the repository at this point in the history
large vocabs couldn't be build due to the following error:
```
 Error: EMFILE: too many open files, scandir '....'
```

found the solution here:
<gatsbyjs/gatsby#12011>
  • Loading branch information
sroertgen committed Nov 2, 2020
1 parent 82b676d commit 4d56e9c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const jsonld = require('jsonld')
const n3 = require('n3')
const path = require('path')
const fs = require('fs-extra')
const gracefulFs = require('graceful-fs');
gracefulFs.gracefulify(fs);
const flexsearch = require('flexsearch')
const omitEmpty = require('omit-empty')
const urlTemplate = require('url-template')
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"gatsby-source-filesystem": "^2.1.37",
"gatsby-transformer-json": "^2.2.17",
"gatsby-transformer-sharp": "^2.3.3",
"graceful-fs": "^4.2.4",
"jsonld": "^1.8.1",
"koa": "^2.11.0",
"koa-bodyparser": "^4.2.1",
Expand Down
2 changes: 2 additions & 0 deletions src/webHookServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const Router = require('koa-router')
const bodyParser = require('koa-bodyparser')
const uuidv4 = require('uuid/v4')
const fs = require('fs-extra')
const gracefulFs = require('graceful-fs');
gracefulFs.gracefulify(fs);
const exec = require('child_process').exec
const fetch = require("node-fetch")

Expand Down

0 comments on commit 4d56e9c

Please sign in to comment.