Closed liam-swinney closed 2 weeks ago
It is impossible to help you without a repro.
The error message is familiar to me and is very likely related to a custom or third-party Docusaurus plugin that doesn't support Rspack and is using webpack.DefinePlugin
instead of currentBundler.instance.DefinePlugin
Please read this to understand what must be done: https://github.com/facebook/docusaurus/issues/10572
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
npm run build
:npm run start
I've updated my existing build to 3.6.1 (I have confirmed this version works fine). I have then installed 'faster' and have enabled this in my
docusaurus.config.js
file.I have tried the combination of
npm run clear
, the recommended removal of the modules/lock files and reinstaillation and still get the issue.I've also tried to 'downgrade' my
rspack
version as per the recommendations in https://github.com/facebook/docusaurus/issues/10664#issuecomment-2466735654, I can see in my package.lock file this is using 1.0.14, however I get the issue either way!Thanks
Reproducible demo
No response
Steps to reproduce
Unable to replicate on a fresh build
Expected behavior
The builds to build correctly with no errors
Actual behavior
See the description for error codes
Your environment
3.6.1
Self-service