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 reported by "useBaseUrl" during construction #5736

Closed
5 tasks done
zhgtt opened this issue Oct 18, 2021 · 3 comments · Fixed by #5753
Closed
5 tasks done

Error reported by "useBaseUrl" during construction #5736

zhgtt opened this issue Oct 18, 2021 · 3 comments · Fixed by #5753
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request

Comments

@zhgtt
Copy link

zhgtt commented Oct 18, 2021

🐛 Bug Report

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io
  • I have read the console error message carefully (if applicable)

Description

  • This error is always reported during construction
  • used: yarn build

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

Expected behavior

(Write what you thought would happen.)

Actual behavior

(Write what happened. Add full console log messages and screenshots, if applicable.)

Screen Shot

image

Your environment

  • Docusaurus version used: latest
  • Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0):
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS):

(Paste the link to an example repo, including a docusaurus.config.js, and exact instructions to reproduce the issue.)

@zhgtt zhgtt added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Oct 18, 2021
@Josh-Cena
Copy link
Collaborator

Same reason as #5718. Also, you don't need useBaseUrl at all—src="/img/blog/2021-09-13/..." works just as well

@slorber
Copy link
Collaborator

slorber commented Oct 19, 2021

For this specific use-case, you should rather use markdown: ![Example image](/img/blog/2021-09-13/xyz.png)

But @Josh-Cena is right, there's an issue with feeds that I didn't plan.

We'll track it there: #5664

@slorber
Copy link
Collaborator

slorber commented Oct 20, 2021

Should be fixed in #5753, please try the latest canary after merge

@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists in another issue or pull request and removed status: needs triage This issue has not been triaged by maintainers labels Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants