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

Feat/upgrading to newest package version #227

Merged
merged 10 commits into from
Dec 12, 2024

Conversation

kkatusic
Copy link
Collaborator

@divine-comedian can you please check this update,pull PR and test on your localhost? thx

@kkatusic kkatusic self-assigned this Dec 11, 2024
@divine-comedian
Copy link
Contributor

I made some changes and got rid of some documents that we didn't need anymore that were causing errors, however the translation pages don't want to build, I can't figure out why. The main build for the default language works fine.

Lots of breaking changes have been introduced from upgrading mdx and docusaurus packages.

on command yarn build --locale es (could also try pt or tr, returns same error) I get this error:

[ERROR] Error: Unable to build website for locale es.
    at tryToBuildLocale (/home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/commands/build/build.js:78:15)
    at async /home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/commands/build/build.js:34:9
    ... 2 lines matching cause stack trace ...
    at async Promise.all (index 0)
    at async runCLI (/home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/commands/cli.js:56:5)
    at async file:///home/mitch/github/giveth-docs/node_modules/@docusaurus/core/bin/docusaurus.mjs:44:3 {
  [cause]: Error: Docusaurus static site generation failed for 1 paths:
  - "/giveconomy/givbacks"
      at generateStaticFiles (/home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/ssg/ssg.js:129:15)
      at async executeSSG (/home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/ssg/ssgExecutor.js:29:23)
      ... 7 lines matching cause stack trace ...
      at async Promise.all (index 0) {
    [cause]: AggregateError
        at generateStaticFiles (/home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/ssg/ssg.js:130:20)
        at async executeSSG (/home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/ssg/ssgExecutor.js:29:23)
        at async buildLocale (/home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/commands/build/buildLocale.js:60:31)
        at async runBuildLocaleTask (/home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/commands/build/build.js:93:5)
        at async /home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/commands/build/build.js:74:13
        at async tryToBuildLocale (/home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/commands/build/build.js:70:9)
        at async /home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/commands/build/build.js:34:9
        at async mapAsyncSequential (/home/mitch/github/giveth-docs/node_modules/@docusaurus/utils/lib/jsUtils.js:21:24)
        at async Command.build (/home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/commands/build/build.js:33:5)
        at async Promise.all (index 0) {
      [errors]: [
        Error: Can't render static file for pathname "/giveconomy/givbacks"
            at generateStaticFile (/home/mitch/github/giveth-docs/node_modules/@docusaurus/core/lib/ssg/ssg.js:167:15)
            at processTicksAndRejections (node:internal/process/task_queues:95:5)
            at runNextTicks (node:internal/process/task_queues:64:3)
            at process.processImmediate (node:internal/timers:447:9)
            at async /home/mitch/github/giveth-docs/node_modules/p-map/index.js:57:22 {
          [cause]: ReferenceError: v is not defined
              at _createMdxContent (server.bundle.js:12182:40)
              at MDXContent (server.bundle.js:12281:8)
              at Uc (server.bundle.js:39638:44)
              at Xc (server.bundle.js:39640:253)
              at Z (server.bundle.js:39646:89)
              at Xc (server.bundle.js:39644:231)
              at Z (server.bundle.js:39646:89)
              at Xc (server.bundle.js:39640:481)
              at Z (server.bundle.js:39646:89)
              at Xc (server.bundle.js:39640:481)
        }
      ]
    }
  }
}

image

@kkatusic
Copy link
Collaborator Author

@divine-comedian updated new changes, please check again when you find time. Also build is now ok.

@divine-comedian divine-comedian merged commit b5339be into master Dec 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants