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

static assets 404 in dev mode #9

Open
gkibria opened this issue Oct 1, 2024 · 1 comment
Open

static assets 404 in dev mode #9

gkibria opened this issue Oct 1, 2024 · 1 comment

Comments

@gkibria
Copy link

gkibria commented Oct 1, 2024

Describe the bug
Hi there! Firstly thanks for the package. I was playing with it for last couple of days now. I am trying to use vue 3 and primevue. But have some issues using static assets in the /src/assets folder. In the dev mode, there I am getting 404 error (see the image). I also tried to build it, but assets folder is completely ignored under /static/dist folder.

To Reproduce
Steps to reproduce the behavior:

  1. Add an img tag in the vue page referencing vue.svg under /src/assets folder
  2. npm run dev
  3. See error in the console, terminal

Screenshots

Screenshot 2024-10-01 at 18 34 23

Desktop:

  • OS: MacOS
  • Browser Chrome
  • Version 129

Additional context
I also tried to add primeicons in the main.js file. (by the way, I renamed it from .jsx to .js and changed it in vite config)

import "primeicons/primeicons.css";

In dev mode, icon fonts also not found. see the image bellow.

Screenshot 2024-10-01 at 18 47 19

All the vite and django-breeze config is default and not modified. Could you please check?

info: files under /src/public folder works.

Thanks,
Kibria

@Louxsdon
Copy link
Owner

Thank you @gkibria for spoting that bug, I will look into it and fix it ASAP.
You can as well make a PR to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants