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

error in docusaurus 3.6.3 with faster #1028

Closed
naviialto opened this issue Nov 25, 2024 · 5 comments
Closed

error in docusaurus 3.6.3 with faster #1028

naviialto opened this issue Nov 25, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@naviialto
Copy link

naviialto commented Nov 25, 2024

Using [email protected] with rspack from faster in docusaurus 3.6.3 gives an error.

install

cd project/
npx create-docusaurus@latest myweb classic --typescript
cd myweb/
yarn add @docusaurus/faster
yarn add docusaurus-theme-openapi-docs
yarn docusaurus start --host 0.0.0.0 --no-open

settings

docusaurus.config.ts

  future: {
    experimental_faster: {
      swcJsLoader: true,
      swcJsMinimizer: true,
      swcHtmlMinimizer: true,
      lightningCssMinimizer: true,
      rspackBundler: true,
      mdxCrossCompilerCache: true,
    },
  },
 themes: ["docusaurus-theme-openapi-docs"],
 themeConfig: {
   // Replace with your project's social card
   image: 'img/docusaurus-social-card.jpg',
   navbar: {
     title: 'My Site',
     logo: {

output

yarn run v1.22.22
$ docusaurus start --host 0.0.0.0 --no-open
[INFO] Starting the development server...
[SUCCESS] Docusaurus website is running at: http://localhost:3000/
●  ██████████████████████████████████████████████████ (9%) setup compilation
<e> [webpack-dev-middleware] [Error:   × TypeError: Cannot read properties of undefined (reading 'set')
<e>   │     at Object.fn (/home/wpg/project/myweb/node_modules/webpack/lib/ProvidePlugin.js:43:37)
<e>   │     at SyncHook.callAsyncStageRange (/home/wpg/project/myweb/node_modules/@rspack/lite-tapable/dist/index.js:240:21)
<e>   │     at SyncHook.callStageRange (/home/wpg/project/myweb/node_modules/@rspack/lite-tapable/dist/index.js:259:14)
<e>   │     at QueriedHook.call (/home/wpg/project/myweb/node_modules/@rspack/lite-tapable/dist/index.js:218:26)
<e>   │     at /home/wpg/project/myweb/node_modules/@rspack/core/dist/index.js:13673:28
<e>   │     at last.function (/home/wpg/project/myweb/node_modules/@rspack/core/dist/index.js:14471:25)
<e>   │
<e> ] {
<e>   code: 'GenericFailure'
<e> }

env

node --version
v23.3.0
 "dependencies": {
   "@docusaurus/core": "3.6.3",
   "@docusaurus/faster": "^3.6.3",
   "@docusaurus/preset-classic": "3.6.3",
   "@mdx-js/react": "^3.0.0",
   "clsx": "^2.0.0",
   "docusaurus-theme-openapi-docs": "^4.2.0",
   "prism-react-renderer": "^2.3.0",
   "react": "^18.0.0",
   "react-dom": "^18.0.0"
 },
@naviialto naviialto added the bug Something isn't working label Nov 25, 2024
@omonk
Copy link
Contributor

omonk commented Nov 25, 2024

Your code block hides the error under a horizontal scroll

<e> [webpack-dev-middleware] [Error:   × TypeError: Cannot read properties of undefined (reading 'set')

We're seeing the same thing as well

@naviialto
Copy link
Author

@omonk ok, fixed it

@omonk
Copy link
Contributor

omonk commented Nov 26, 2024

@naviialto came across this this morning - #1003

You'll want to use the latest canary release of the package as it's not on a normal semver release yet but give it a go

@erielmiquilino
Copy link

@omonk I was having the same problem, and this solution worked for me:

Everything is working perfectly now. Thanks for the guidance!

@sserrata
Copy link
Member

sserrata commented Dec 2, 2024

Yeah, also a reminder to check/consult release notes as I'll try to include announcements of new features like these.

@sserrata sserrata closed this as completed Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants