Skip to content

Commit 58d52f5

Browse files
committed
[dev-404-page] suppress EPERM errors on Windows
Note that this doesn't entirely resolve #2819, however it is a much-needed mitigation until we figure out a better way to fix this. Thanks to @op3d and @kripod for their efforts in investigating this issue.
1 parent f0f0040 commit 58d52f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/gatsby/src/internal-plugins/dev-404-page/gatsby-node.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ exports.createPages = async ({ store, boundActionCreators }) => {
88
const currentPath = path.join(__dirname, `./raw_dev-404-page.js`)
99
const newPath = path.join(program.directory, `.cache`, `dev-404-page.js`)
1010

11-
fs.copySync(currentPath, newPath)
11+
fs.copy(currentPath, newPath)
12+
.catch(err => console.error(err))
1213

1314
createPage({
1415
component: newPath,

0 commit comments

Comments
 (0)