Skip to content

An upgrade to beta.15 yields module not found errors. #6516

Answered by djipco
djipco asked this question in Q&A
Discussion options

You must be logged in to vote

So, I changed this:

import useThemeContext from '@theme/hooks/useThemeContext';
import useHideableNavbar from '@theme/hooks/useHideableNavbar';
import useLockBodyScroll from '@theme/hooks/useLockBodyScroll';
import useWindowSize from '@theme/hooks/useWindowSize';

To this:

import {
  useThemeConfig,
  useColorMode,
  useHideableNavbar,
  useLockBodyScroll,
  useWindowSize,
} from '@docusaurus/theme-common';

... and a few errors disappeared.

However, I'm not sure what to do with :

import {useActivePlugin} from '@theme/hooks/useDocs';

Suggestions?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Josh-Cena
Comment options

@djipco
Comment options

@dingshaohua-com
Comment options

Answer selected by slorber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants