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

Error: Can't resolve '@theme/IconArrow' with latest docusaurus beta.22 & RC #201

Closed
sean-perkins opened this issue Jul 27, 2022 · 0 comments · Fixed by #203
Closed

Error: Can't resolve '@theme/IconArrow' with latest docusaurus beta.22 & RC #201

sean-perkins opened this issue Jul 27, 2022 · 0 comments · Fixed by #203

Comments

@sean-perkins
Copy link
Contributor

sean-perkins commented Jul 27, 2022

Docusaurus recently had a breaking change to change the path for the icon assets.

PR for reference: facebook/docusaurus#7740

Using this package with any version after beta.21 results in the following build error:

Module not found: Error: Can't resolve '@theme/IconArrow' in '/node_modules/docusaurus-theme-openapi/lib-next/theme/ApiPage'

Solving this error is relatively simple, the path needs to be updated to:

import IconArrow from "@theme/Icon/Arrow";

However this requires updating the project dependency to the latest RC version.

@sean-perkins sean-perkins changed the title Error: Can't resolve '@theme/IconArrow' with latest docusaurus rc-1 Error: Can't resolve '@theme/IconArrow' with latest docusaurus beta.22 & RC Jul 27, 2022
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

Successfully merging a pull request may close this issue.

1 participant