-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Root.js
doesn't get wrapped around the docusaurus component tree.
#5105
Comments
Yes it works: https://codesandbox.io/s/docusaurus-root-theme-forked-s7moo It's just because adding a new swizzled component requires restarting your docusaurs server, so that we can update webpack aliases Also codeSandbox use a remote docker container so when you reload your browser, it does not necessarily restart Docusaurus behind the scene |
Thanks for the super quick answer ^^ Does and how did you restart the server in the code sandbox.. because I also doesn't seem to get it work there :/ |
Are you on latest version?
We had a problem on first betas
Le mer. 30 juin 2021 à 20:14, BennoDev ***@***.***> a écrit :
… Does yarn run start restart the docusaurus server then?
Because if so, I've tried that multiple times, and it didn't change
anything...
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#5105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFW6PSR63FTPRJM4ZRXIMDTVNNIPANCNFSM47S2XW2A>
.
|
Ohh.. right I didn't notice that since in the past there did appear a warning when I wasn't on the latest version.. |
np Did a check about the update notification, and it still work but it only displayed the update message at most once per day. Making it stick on each run with #5110 |
🐛 Bug Report
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Root.js
doesn't get wrapped around the docusaurus component tree.Have you read the Contributing Guidelines on issues?
Yes
Steps to reproduce
https://codesandbox.io/s/docusaurus-root-theme-c8prr?file=/src/theme/Root.js
Open the provided
codesandbox
and checkout theRoot.js
file insrc/theme/
.Then you should see something like that:
If you now start the docusaurus page you will notice that it won't call the
Root.js
wrapper,since the
console.log("Called Root")
hasn't been executed and theRoboto
font hasn't been loaded.Expected behavior
The
Root.js
file should be wrapped around the docusaurus component tree,as described in the documentation:
https://docusaurus.io/docs/using-themes#wrapper-your-site-with-root
Actual behavior
The
Root.js
file hasn't been wrapped around the docusaurus component tree.Your environment
Doesn't matter
Reproducible demo
https://codesandbox.io/s/docusaurus-root-theme-c8prr?file=/src/theme/Root.js
The text was updated successfully, but these errors were encountered: