You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see a blank screen after reloading the page, absolutely nothing appears
Ideas
If I copy/paste the content of PhoneView.tsx directly in the blog post, it works. It's as if declaring a component in an other file than the mdx file was breaking something.
I tried many thing :
Not using typescript but plain js
Declaring my component file in an other location that src
Using absolute path for importing
Using default export
The text was updated successfully, but these errors were encountered:
Thanks, this is indeed a bug due to a typo, that I just fixed in #4575
The build process was sensitive to the order in which the user provides the locales, and thought it had reached the last locale to build of the list. In the end, Docusaurus just builds your site in "fr" and never in "en"
Temporary workaround: put the default locale first in the list:
First of all, thanks for the amazing work on this project ! 👍
Source code : https://github.com/christophemenager/christophem-blog
Blog in production : https://chrichri.netlify.app/
I am running a "blog only" version of docusaurus and I followed the documentation here without any issue, it works like a charm BUT :
The newly released i18n feature does not work (I followed the documentation about the setup precisely)
Ideas
I suspect it's because there is no
index.js
in a "blog-only" configuration and maybe docusaurus is trying to find such a file ?The JSX in markdown does not work when importing a component declared in an other file
src/components/PhoneView.tsx
https://github.com/christophemenager/christophem-blog/blob/main/src/components/PhoneView.tsx2021-04-05-scrollview-style.mdx
withimport {PhoneView} from '../src/components/PhoneView.tsx'
and use it in the blog post<PhoneView />
https://github.com/christophemenager/christophem-blog/blob/main/blog/2021-04-05-scrollview-style.mdxIdeas
If I copy/paste the content of
PhoneView.tsx
directly in the blog post, it works. It's as if declaring a component in an other file than the mdx file was breaking something.I tried many thing :
The text was updated successfully, but these errors were encountered: