Docusaurus: Copying build assets failed when trying to deploy

Created on 6 Feb 2020  路  4Comments  路  Source: facebook/docusaurus

馃悰 Bug Report

When trying to deploy a freshly built website on GitHub pages, I'm getting an error when the deploy script tried to copy server.bundle.js file to destination folder.

Have you read the Contributing Guidelines on issues?

yes

Environment

Windows 10

To Reproduce

  1. Follow installation guide
  2. Follow deployment guide, particularly the part on deploying to GitHub Pages

Expected behavior

The deploy command should run to completion and deploy the assets to GitHub Pages.

Actual Behavior

The following error occured (code which threw) :

<project-path>\node_modules\@docusaurus\core\lib\commands\deploy.js:106
                throw new Error(`Error: Copying build assets failed with error '${error}'`);
                ^

Error: Error: Copying build assets failed with error 'Error: ENOENT: no such file or directory, stat '<project-path>\build\server.bundle.js''

When I commented out the code in build command script which does the removal of server.bundle.js, the deploy command runs to completion

Version of Docusaurus

2.0.0-alpha.40

bug needs triage

All 4 comments

@pfongkye sorry for the long wait, could you please reproduce this bug on the latest version (2.0.0-alpha.49)?

hello @lex111
no problem. I'll take a look and will keep you updated.

Hello @lex111
I've tested with version 2.0.0-alpha.50 and it deployed correctly.

Great, thanks for the confirmation!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

knowbody picture knowbody  路  23Comments

KoenCa picture KoenCa  路  25Comments

yangshun picture yangshun  路  61Comments

maximousblk picture maximousblk  路  23Comments

arifszn picture arifszn  路  24Comments