Module not found: Error: Can't resolve '@theme/Seo' #7351
-
|
Hi, We are testing some customizations on the blog and for that we created a specific branch called
Any idea what's going on? best |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
You have swizzled components there. As always, take a look at those and make sure to update their code according to latest Docusaurus version you are using. In this specific case, the But you can't replace it like that and expect your site to work: you really have to check and eventually re-swizzle the components on upgrades to make sure your swizzled components are fine. In this case you'll notice that our official Remember that if you have customization use-cases, you can report them here so that we make them less fragile over time: #5468 I'd recommend that you re-read the swizzle doc to understand better all this. Also when doing customizations on 2 branches, You'd rather use the same Docusaurus version across the branches |
Beta Was this translation helpful? Give feedback.
You have swizzled components there. As always, take a look at those and make sure to update their code according to latest Docusaurus version you are using.
In this specific case, the
@theme/Seocomponent does not exist anymoreIt has been replaced by
import { PageMetadata } from '@docusaurus/theme-common';But you can't replace it like that and expect your site to work: you really have to check and eventually re-swizzle the components on upgrades to make sure your swizzled components are fine. In this case you'll notice that our official
BlogPostItemdoes not even usePageMetadataorSeoanymore (as it was moved to another component).Remember that if you have customization use-cases, yo…