Docusaurus Node/SSR could not render static page #4661
-
Hi, when upgrading to docusaurus2.0.0-alpha.73 I have a problem when the markdown pages of the docs folder:
https://gitlab.com/unesp-labri/sites/labri/-/tree/main/website best |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
Please create a repro, it is complcated to help you without being able to
inspect the code
Le mer. 21 avr. 2021 à 20:33, Rafael de Almeida ***@***.***>
a écrit :
… when upgrading to docusaurus2.0.0-alpha.73 I have a problem when build
the docusaurus
the markdown pages of the docs folder:
Docusaurus Node/SSR could not render static page with
path=/docs/cadernos/anteriores because of error: Cannot read property
'length' of undefined
[image: Captura de tela de 2021-04-21 15-21-24]
<https://user-images.githubusercontent.com/18035347/115602541-7293c800-a2b5-11eb-9948-37479efe4a47.png>
best
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4661>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFW6PSP6QWUAIMMQOY5ZNDTJ4K65ANCNFSM43K4N5IQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi @slorber, it looks something similar to #3515, doesn't it? After upgrading to alpha.73, rafael@pc:~/codigo/labri/website$ yarn run build
yarn run v1.19.1
$ docusaurus build
[en] Creating an optimized production build...
Warn: `blogDir` doesn't exist: "/home/rafael/codigo/labri/website/blog".
✔ Client
Compiled successfully in 1.04m
✖ Server
Compiled with some errors in 1.36m
Docusaurus Node/SSR could not render static page with path=/docs/cadernos/anteriores because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cadernos/expediente because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cadernos/intro because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cadernos/normas because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cadernos/series-tematicas because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/covid19/intro because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cursos/ciencia-dados/intro because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cursos/intro because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/doc2 because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/doc3 because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/info/atendimento because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/info/colaborador because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/info/estagio because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/mdx because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/projetos/intro because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/tecnologias-digitais/intro because of error: Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefined
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
error building locale=en
Error: Failed to compile with errors.
at /home/lantri_rafael/codigo/labri/website/node_modules/@docusaurus/core/lib/webpack/utils.js:195:24
at finalCallback (/home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/MultiCompiler.js:254:12)
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/MultiCompiler.js:277:6
at done (/home/lantri_rafael/codigo/labri/website/node_modules/neo-async/async.js:2931:13)
at runCompilers (/home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/MultiCompiler.js:181:48)
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/MultiCompiler.js:188:7
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/MultiCompiler.js:270:7
at finalCallback (/home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/Compiler.js:257:39)
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/Compiler.js:273:13
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/lantri_rafael/codigo/labri/website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:42:1)
at AsyncSeriesHook.lazyCompileHook (/home/lantri_rafael/codigo/labri/website/node_modules/tapable/lib/Hook.js:154:20)
at onCompiled (/home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/Compiler.js:271:21)
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/Compiler.js:681:15
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/lantri_rafael/codigo/labri/website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/home/lantri_rafael/codigo/labri/website/node_modules/tapable/lib/Hook.js:154:20)
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/Compiler.js:678:31
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Node v15.14.0 |
Beta Was this translation helpful? Give feedback.
-
Try run docusaurus clear
If it doesn't work I need a repro
Le mer. 21 avr. 2021 à 21:52, Rafael de Almeida ***@***.***>
a écrit :
… Hi @slorber <https://github.com/slorber>,
After upgrading to alpha.73, npx docusaurus --version indicates that the
upgrade was successful. But when running yarn run build the return is
shown below:
***@***.***:~/codigo/labri/website$ yarn run build
yarn run v1.19.1
$ docusaurus build
[en] Creating an optimized production build...
Warn: `blogDir` doesn't exist: "/home/rafael/codigo/labri/website/blog".
✔ Client
Compiled successfully in 1.04m
✖ Server
Compiled with some errors in 1.36m
Docusaurus Node/SSR could not render static page with path=/docs/cadernos/anteriores because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cadernos/expediente because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cadernos/intro because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cadernos/normas because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cadernos/series-tematicas because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/covid19/intro because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cursos/ciencia-dados/intro because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/cursos/intro because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/doc2 because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/doc3 because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/info/atendimento because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/info/colaborador because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/info/estagio because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/mdx because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/projetos/intro because of error: Cannot read property 'length' of undefined
Docusaurus Node/SSR could not render static page with path=/docs/tecnologias-digitais/intro because of error: Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefinedTypeError: Cannot read property 'length' of undefined
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44675:498)
at $a (main:44678:16)
at a.b.render (main:44683:476)
at a.b.read (main:44683:18)
at Object.renderToString (main:44693:364)
at doRender (main:70631:404)
at async serverEntry_render (main:70630:301)
error building locale=en
Error: Failed to compile with errors.
at ***@***.***/core/lib/webpack/utils.js:195:24
at finalCallback (/home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/MultiCompiler.js:254:12)
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/MultiCompiler.js:277:6
at done (/home/lantri_rafael/codigo/labri/website/node_modules/neo-async/async.js:2931:13)
at runCompilers (/home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/MultiCompiler.js:181:48)
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/MultiCompiler.js:188:7
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/MultiCompiler.js:270:7
at finalCallback (/home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/Compiler.js:257:39)
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/Compiler.js:273:13
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/lantri_rafael/codigo/labri/website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:42:1)
at AsyncSeriesHook.lazyCompileHook (/home/lantri_rafael/codigo/labri/website/node_modules/tapable/lib/Hook.js:154:20)
at onCompiled (/home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/Compiler.js:271:21)
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/Compiler.js:681:15
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/lantri_rafael/codigo/labri/website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/home/lantri_rafael/codigo/labri/website/node_modules/tapable/lib/Hook.js:154:20)
at /home/lantri_rafael/codigo/labri/website/node_modules/webpack/lib/Compiler.js:678:31
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4661 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFW6PW3RNHH77MJN7BQJYLTJ4UGFANCNFSM43K4N5IQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi @slorber,
yarn upgrade @docusaurus/core@2.0.0-alpha.73 \
@docusaurus/preset-classic@2.0.0-alpha.73 \
@docusaurus/preset-bootstrap2.0.0-alpha.73 \
@docusaurus/theme-bootstrap2.0.0-alpha.73 \
@docusaurus/theme-live-codeblock2.0.0-alpha.73 \
@docusaurus-plugin-sass2.0.0-alpha.73 \
@docusaurus/plugin-ideal-image2.0.0-alpha.73 Version docusaurusnpx docusaurus --version add themesyarn add @docusaurus/preset-bootstrap \
yarn add @docusaurus/theme-bootstrap \
yarn add @docusaurus/theme-live-codeblock \
yarn add @docusaurus/theme-bootstrap \
yarn add @docusaurus/theme-search-algolia add pluginsyarn add @docusaurus/plugin-google-analytics \
yarn add @docusaurus/plugin-google-gtag \
yarn add @docusaurus/plugin-sitemap \
yarn add @docusaurus/plugin-ideal-image \
yarn add @docusaurus/plugin-pwa \
yarn add docusaurus-plugin-sass \
yarn add babel-plugin-apply-mdx-type-prop \
yarn add @easyops-cn/docusaurus-search-local To Repoduce
git clone https://gitlab.com/unesp-labri/sites/labri02.git
cd labri02/
yarn install
yarn start
yarn run build Expected behavior
Actual Behavior
rafael@pc:~/codigo/labri02$ yarn run build
yarn run v1.19.1
$ docusaurus build
[en] Creating an optimized production build...
Warn: `blogDir` doesn't exist: "/home/rafael/codigo/labri02/blog".
✔ Client
Compiled successfully in 50.63s
✖ Server
Compiled with some errors in 1.15m
Docusaurus Node/SSR could not render static page with path=/docs/doc2 because of error: Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
(undefined) TypeError: Cannot read property 'length' of undefined
at Headings (main:16659:245)
at d (main:44434:498)
at $a (main:44437:16)
at a.b.render (main:44442:476)
at a.b.read (main:44442:18)
at Object.renderToString (main:44452:364)
at doRender (main:70390:404)
at async serverEntry_render (main:70389:301)
error building locale=en
Error: Failed to compile with errors.
at /home/lantri_rafael/codigo/labri02/node_modules/@docusaurus/core/lib/webpack/utils.js:195:24
at finalCallback (/home/lantri_rafael/codigo/labri02/node_modules/webpack/lib/MultiCompiler.js:254:12)
at /home/lantri_rafael/codigo/labri02/node_modules/webpack/lib/MultiCompiler.js:277:6
at done (/home/lantri_rafael/codigo/labri02/node_modules/neo-async/async.js:2931:13)
at runCompilers (/home/lantri_rafael/codigo/labri02/node_modules/webpack/lib/MultiCompiler.js:181:48)
at /home/lantri_rafael/codigo/labri02/node_modules/webpack/lib/MultiCompiler.js:188:7
at /home/lantri_rafael/codigo/labri02/node_modules/webpack/lib/MultiCompiler.js:270:7
at finalCallback (/home/lantri_rafael/codigo/labri02/node_modules/webpack/lib/Compiler.js:257:39)
at /home/lantri_rafael/codigo/labri02/node_modules/webpack/lib/Compiler.js:273:13
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/lantri_rafael/codigo/labri02/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:42:1)
at AsyncSeriesHook.lazyCompileHook (/home/lantri_rafael/codigo/labri02/node_modules/tapable/lib/Hook.js:154:20)
at onCompiled (/home/lantri_rafael/codigo/labri02/node_modules/webpack/lib/Compiler.js:271:21)
at /home/lantri_rafael/codigo/labri02/node_modules/webpack/lib/Compiler.js:681:15
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/lantri_rafael/codigo/labri02/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/home/lantri_rafael/codigo/labri02/node_modules/tapable/lib/Hook.js:154:20)
at /home/lantri_rafael/codigo/labri02/node_modules/webpack/lib/Compiler.js:678:31
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Your EnvironmentUbuntu |
Beta Was this translation helpful? Give feedback.
-
Thanks @slorber, it worked! Is there a way to better monitor the modifications of the docusaurus blog implementations? If it were possible at least one message indicating this would help a lot We cost BlogListPage, BlogPostItem, BlogPostPage We didn't even touch the TOC we brought with the swizzled to see if it would be necessary to customize it too, but it wasn't. Despite this, a modification of the TOC also impacted the BlogPostPage swizzled (right-hand toc) Especially BlogListPage and BlogPostPage I think are important for people who want to customize the blog Once again, thank you for your attention and congratulations for your work with docusaurus! |
Beta Was this translation helpful? Give feedback.
-
Those things are the most annoying pain points to solve when implementing
custom themes.
The whole theme is somehow an implicit API surface on which it is
complicated for us to move fast and yet avoid breaking changes.
For now you can only check the Changelog for breaking changes.
In the future I have some ideas to make this more explicit
Le ven. 23 avr. 2021 à 01:21, Rafael de Almeida ***@***.***>
a écrit :
… Thanks @slorber <https://github.com/slorber>, it worked!
Is there a way to better monitor the modifications of the docusaurus blog
implementations? If it were possible at least one message indicating this
would help a lot
We cost BlogListPage, BlogPostItem, BlogPostPage
We didn't even touch the TOC we brought with the swizzled to see if it
would be necessary to customize it too, but it wasn't. Despite this, a
modification of the TOC also impacted the swizzled (toc from the right side)
Especially BlogListPage and BlogPostPage I think are important for people
who want to customize the blog
Once again, thank you for your attention and congratulations for your work
with docusaurus!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4661 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFW6PTJQ7W6EWZBVCOUXZLTKCVQHANCNFSM43K4N5IQ>
.
|
Beta Was this translation helpful? Give feedback.
Thanks @slorber, it worked!
Is there a way to better monitor the modifications of the docusaurus blog implementations? If it were possible at least one message indicating this would help a lot
We cost BlogListPage, BlogPostItem, BlogPostPage
We didn't even touch the TOC we brought with the swizzled to see if it would be necessary to customize it too, but it wasn't. Despite this, a modification of the TOC also impacted the BlogPostPage swizzled (right-hand toc)
Especially BlogListPage and BlogPostPage I think are important for people who want to customize the blog
Once again, thank you for your attention and congratulations for your work with docusaurus!