Skip to content
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

docusaurus live 오류 #1

Open
hae-on opened this issue Nov 9, 2023 · 0 comments
Open

docusaurus live 오류 #1

hae-on opened this issue Nov 9, 2023 · 0 comments

Comments

@hae-on
Copy link
Contributor

hae-on commented Nov 9, 2023

  • theme을 써서 스타일을 한 부분을 읽지 못함
    ex) border: 1px solid ${({ theme }) => theme.colors.gray2};
    여기에 gray2를 읽지 못해서 문서 오류가 남

  • custom hook을 인식하지 못함
    하나의 컴포넌트로 감싸야 인식하는데 그러면 렌더링이 안됨.

공식문서를 보면...

렌더링 명령(noInline)
The noInline option should be used to avoid errors when your code spans multiple components or variables.

const project = 'Docusaurus';

const Greeting = () => <p>Hello {project}!</p>;

render(<Greeting />);

이렇게 쓸 수 있는데 이렇게 해봐도 에러 남.
해결 가능한 사람은 이슈 파고 해결해 보세용

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant