-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Live reload is broken on local dev server when @docusaurus/faster is enabled #10664
Comments
This is a bug in Rspack 1.1 Downgrade to 1.0.x and it should work better |
I see. Thank you. For anyone stumbling into this issue, we can restrict
Or in case, you prefer not to pollute the
|
Thanks Depending on how fast the Rspack team is to fix this bug (they usually are), I may pin the dependency in a 3.6.2 patch release. |
See below for how I fixed this in my site. |
@mike-solomon you can see for yourself that you broke your site while upgrading to v3.6.1 by also upgrading from Rspack from 1.0.14 to 1.1.0: Note: pinning/resolving exact transitive dependencies is a feature of your package manager, so you need to read the package manager docs to figure out how to do so and ensure that your lockfile and node_module use the expected version of Rspack (1.0.x, not 1.1.0) In Yarn this is usually solved with: "resolutions": {
"@rspack/core": "1.0.14",
} |
Thanks for taking the time to look into the site and reply. To provide some additional context: I didn't commit the Rspack changes when I was pinning it to the That being said, based on:
I believe I misunderstood how to pin that. I did a Today, I tried adding a Thanks a bunch for the help @slorber ^_^ |
Fix has been fixed in Rspack 1.1.1, no need to pin anymore to 1.0.x https://github.com/web-infra-dev/rspack/releases/tag/v1.1.1 Docusaurus will require >1.1.1 in our next release: #10648 |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
When you start the local development server and make any changes to a markdown (or CSS) file, Docusaurus fails to compile the changes and reload the website.
Reproducible demo
No response
Steps to reproduce
@docusaurus/faster
:@docusarus/faster
. Opendocusaurus.config.ts
and add:npm start
docs/intro.md
.Expected behavior
Docusaurus should process the new changes, and reload the browser running
http://localhost:3000/
Actual behavior
Docusaurus fails to compile the changes and crashes with the following error:
Your environment
Self-service
The text was updated successfully, but these errors were encountered: