Skip to content

markdown image reference can not find file in docs/assets -> 404 #600

@alex254

Description

@alex254

Is this a bug report?

yes

Have you read the Contributing Guidelines on issues?

yes

Environment

(OS, Node, npm, yarn)
Windows 10
Node v8.11.1
npm 5.6.0
yarn 1.6.0

Steps to Reproduce

(Write your steps here:)
I ran into the problem a bit further down my own project; but initiated a new docusaurus project from the start to see if the problem still exists. And I get the same error...no changes were made to siteConfig.js

  1. npm install --global docusaurus-init
  2. docusaurus-init
  3. rename examples -> /docs and /blog as in installation manual
  4. add folder /assets to /docs
  5. add a dummy dosomething.png (also .jpg) file to assets folder
  6. add ![test](assets/dosomething.png) to doc1.md
  7. npm start
  8. console error: GET http://localhost:3000/docs/assets/dosomething.png 404 (Not Found)

tried it in Chrome and Brave browser; same result.

Expected Behavior

Expected: image is shown in browser

Actual Behavior

console error: GET http://localhost:3000/docs/assets/dosomething.png 404 (Not Found)

Reproducible Demo

https://github.com/iam-io/documentation/blob/master/docs/DOC_2_shoppable.md

Here you can see that github understand the link and shows the picture...however my npm build doesn't work.

Metadata

Metadata

Assignees

Labels

bugAn error in the Docusaurus core causing instability or issues with its executionstatus: claimedIssue has been claimed by a contributor who plans to work on it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions