You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jakehemmerle opened this issue
Feb 26, 2022
· 2 comments
· Fixed by #6779
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionexternalThis issue is caused by an external dependency and not Docusaurus.
I have read the console error message carefully (if applicable).
Description
Tutorial images will not load in default initialization. Same w some icons. Those files that "can't be read" do exist and render fine when opened with an image viewer.
I have manually patched the default initialization with this PR, but I don't think they're related.
i suspect this still happens using npm or other package managers
Expected behavior
Shouldn't see errors in the console, images should appear on the site.
Actual behavior
✔ Client
Compiled successfully in 11.24s
[ERROR] The image at /Users/jake/codebases/astar/test/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg can't be read correctly. Please ensure it's a valid image.
The "path" argument must be of type string. Received type number (58)
[ERROR] The image at /Users/jake/codebases/astar/test/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg can't be read correctly. Please ensure it's a valid image.
The "path" argument must be of type string. Received type number (130)
[ERROR] The image at /Users/jake/codebases/astar/test/static/img/tutorial/localeDropdown.png can't be read correctly. Please ensure it's a valid image.
The "path" argument must be of type string. Received type number (131)
[ERROR] The image at /Users/jake/codebases/astar/test/static/img/docusaurus.png can't be read correctly. Please ensure it's a valid image.
The "path" argument must be of type string. Received type number (132)
[ERROR] The image at /Users/jake/codebases/astar/test/static/img/tutorial/docsVersionDropdown.png can't be read correctly. Please ensure it's a valid image.
The "path" argument must be of type string. Received type number (133)
client (webpack 5.69.1) compiled successfully
✔ Client
Compiled successfully in 169.78ms
bugAn error in the Docusaurus core causing instability or issues with its executionexternalThis issue is caused by an external dependency and not Docusaurus.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Tutorial images will not load in default initialization. Same w some icons. Those files that "can't be read" do exist and render fine when opened with an image viewer.
I have manually patched the default initialization with this PR, but I don't think they're related.
Reproducible demo
https://github.com/astarnetwork/docs
Steps to reproduce
yarn create docusaurus docs classic --typescript
oryarn create docusaurus docs classic
then start it
yarn start
i suspect this still happens using
npm
or other package managersExpected behavior
Shouldn't see errors in the console, images should appear on the site.
Actual behavior
Your environment
Self-service
The text was updated successfully, but these errors were encountered: