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

docs(bug): vitepress console warning, playground image #518

Closed
5 tasks done
andretchen0 opened this issue Jan 21, 2024 · 0 comments · Fixed by #519
Closed
5 tasks done

docs(bug): vitepress console warning, playground image #518

andretchen0 opened this issue Jan 21, 2024 · 0 comments · Fixed by #519
Assignees

Comments

@andretchen0
Copy link
Contributor

Describe the bug

When running pnpm run docs:dev and visiting http://localhost:5173/guide/ the terminal displays the following warning:

5:05:06 PM [vitepress] hmr update /guide/index.md
Assets in public directory cannot be imported from JavaScript.
If you intend to import that asset, put the file in the src directory, and use /src/playground.png instead of /public/playground.png.
If you intend to use the URL of that asset, use /playground.png?url.
Files in the public directory are served at the root path.
Instead of /public/playground.png, use /playground.png.

Reproduction

None

Steps to reproduce

  • In the terminal, run pnpm run docs:dev
  • In the browser, visit http://localhost:5173/guide/
  • In the terminal, see the warning

System Info

System:
    OS: macOS 14.0
    CPU: (8) arm64 Apple M1
    Memory: 136.88 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.8.1 - /opt/homebrew/bin/node
    npm: 10.1.0 - /opt/homebrew/bin/npm
    pnpm: 8.6.5 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 120.0.6099.234
    Safari: 17.0
  npmPackages:
    @tresjs/cientos: 3.7.0 => 3.7.0 
    @tresjs/eslint-config-vue: ^0.2.1 => 0.2.1 
    vite: ^5.0.10 => 5.0.10

Used Package Manager

pnpm

Code of Conduct

@andretchen0 andretchen0 self-assigned this Jan 21, 2024
@andretchen0 andretchen0 linked a pull request Jan 21, 2024 that will close this issue
@andretchen0 andretchen0 changed the title bug(docs): vitepress console warning, playground image docs(bug): vitepress console warning, playground image Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant