Skip to content

Error reported by "useBaseUrl" during construction #5736

Closed

Description

@zhgtt

🐛 Bug Report

Prerequisites

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.)

Activity

  1. added
    bug
    status: needs triage
    on Oct 18, 2021
  2. Josh-Cena commented on Oct 18, 2021

    @Josh-Cena
    Collaborator

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

  3. slorber commented on Oct 19, 2021

    @slorber
    Collaborator

    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

  4. slorber commented on Oct 20, 2021

    @slorber
    Collaborator

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

  5. added
    closed: duplicate
    and removed
    status: needs triage
    on Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclosed: duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions