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

Buffer is not defined, theme_apiDoc error on latest docusuarus version #37

Closed
sibelius opened this issue May 12, 2021 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@sibelius
Copy link

config

module.exports = {
[
      'redocusaurus',
      {
        specs: [
          {
            routePath: '/api-public/',
            spec: './src/swaggers/public.json',
          },
          {
            routePath: '/api-private/',
            spec: './src/swaggers/public.json',
          },
        ],
      },
    ],
}

error

```jsx
Docusaurus Node/SSR could not render static page with path=/api-public because of error: Buffer is not defined
Docusaurus Node/SSR could not render static page with path=/api-private because of error: Cannot access 'theme_ApiDoc' before initialization

ReferenceError: Buffer is not defined
ReferenceError: Cannot access 'theme_ApiDoc' before initialization
at Array.forEach (<anonymous>)
  error building locale=pt-BR
  Error: Failed to compile with errors.
  at /app/node_modules/@docusaurus/core/lib/webpack/utils.js:198:24
  at /app/node_modules/webpack/lib/MultiCompiler.js:550:14
  at processQueue (/app/node_modules/webpack/lib/MultiCompiler.js:488:6)
  at processTicksAndRejections (internal/process/task_queues.js:75:11)

version

"@docusaurus/core": "2.0.0-beta.0",
"@docusaurus/preset-classic": "2.0.0-beta.0",
"redocusaurus": "^0.3.4",
@rohit-gohri
Copy link
Owner

Related to #25 I think. Testing with latest beta currently

@rohit-gohri rohit-gohri added the bug Something isn't working label May 12, 2021
rohit-gohri added a commit that referenced this issue May 12, 2021
Added back node polyfills until redoc supports Webpack 5: Redocly/redoc#1584

Closes #25 #37
rohit-gohri added a commit that referenced this issue May 12, 2021
Added back node polyfills until redoc supports Webpack 5: Redocly/redoc#1584

Closes #25 #37
@rohit-gohri rohit-gohri self-assigned this May 13, 2021
@rohit-gohri
Copy link
Owner

Fixed in v0.4.0

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

2 participants