Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GitHub Pages Deployment] Client bundle compiled with errors therefore further build is impossible. #8148

Closed
3 of 7 tasks
ghost opened this issue Sep 30, 2022 · 4 comments
Closed
3 of 7 tasks
Labels
closed: duplicate This issue or pull request already exists in another issue or pull request

Comments

@ghost
Copy link

ghost commented Sep 30, 2022

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

When deploying to github pages all of a sudden build is failing.
When build started failing it was after pulling in a PR for just 1 .md page
Removed said page and still failed.

Was using yarn, switched to pnpm to see if that would change anything but get the same error

`[INFO] [en] Creating an optimized production build...
[info] [webpackbar] Compiling Client
[info] [webpackbar] Compiling Server
[success] [webpackbar] Client: Compiled with some errors in 25.46s

Error: Client bundle compiled with errors therefore further build is impossible.
assets/css/styles.c992ff75.css from Css Minimizer plugin
Error: Call retries were exceeded
assets/css/styles.e0e51a1a.css from Css Minimizer plugin
Error: Call retries were exceeded
 ELIFECYCLE  Command failed with exit code 1.
Error: Process completed with exit code 1.`

Reproducible demo

No response

Steps to reproduce

commit to github pages

Expected behavior

should build successfully

Actual behavior

build fails

Your environment

Self-service

  • I'd be willing to fix this bug myself.
@ghost ghost added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Sep 30, 2022
@surishubham
Copy link

surishubham commented Sep 30, 2022

This issue coming from last few hours before that everything was working fine.

For the time I have added a temporary solution by changing build command

"build": "docusaurus build --no-minify",

but it might effect on page performance

@ghost
Copy link
Author

ghost commented Sep 30, 2022

This issue coming from last few hours before that everything was working fine.

For the time I have added a temporary solution by changing build command

"build": "docusaurus build --no-minify",

but it might effect on page performance

Can confirm doing this does build successful now

@surishubham
Copy link

yes, can build without minimize JS/CSS

https://docusaurus.io/docs/cli#options

@slorber
Copy link
Collaborator

slorber commented Sep 30, 2022

Duplicate of #8147

Original issue in third-party dependency: webpack-contrib/css-minimizer-webpack-plugin#198

Temporary workaround is to pin the dependency to ensure it uses 4.1.0 instead of 4.2.0 (or use --no-minify but not so great)

@slorber slorber closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2022
@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists in another issue or pull request and removed bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Sep 30, 2022
kaedroho added a commit to django-bridge/django-bridge that referenced this issue Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: duplicate This issue or pull request already exists in another issue or pull request
Projects
None yet
Development

No branches or pull requests

3 participants