Hello, I have an issue with displaying images with sage10 theme on localhost:3000, png and jpg are not shown, however, if I choose any SVG it shows just fine. It is just a fresh install, nothing has been changed there. As I understand for the new sage 10 I should only change the proxy setting inside bud.config.js in order to get a project running;
This appears to be an image outside of the theme and unrelated to Sage? Are you saying that during yarn dev with Bud that the image source is incorrect and resulting in a 404?
What version of Bud are you running (check package.json)?
I use ACF Pro in the project and display images as I usually do inside sage 9. I have also tried header_image() function to display the image, but still the same problem, images donāt show up when localhost:3000 is running. I also see some errors from ābud hmrā inside the console.
When viewing the site via the local url without bud running, images being called via the_post_thumbnail load but with images being called using the @asset directive the āassetsā directory is being ommitted from the src url
I seem to partly have this issue as well (some images work, others not) - probably related. In addition to that it looks like that the dev server does proxy only the web root (http://localhost:3000/). If I try to use any other permalink structure than basic (http://localhost:3000/?page_id=xx) I end up with a message āSorry canāt find that!ā which isnāt an Apache 404 (obviously).
Iām a bit out of ideas as I use two slightly different dev setups and both seem to fail with this.
The fact that I couldnāt find any similar problems seem to hint that it might be a problem on my side. Unfortunately Iām not very skilled regarding javascript and I currently have no clue what could be the problem (besides that I have to use Apache instead of nginx - but I never came across such a problem and both slightly different dev boxes have this problem).
Iām using sage & bud 5.0.0-next.18 on Linux (natively, no VM). Any permalinks work fine on the local domain - but fail when I start the dev server.
I already tried @Akiās suggestion - but without success.
Sorry if I bring this up again but I still have no idea why permalinks arenāt proxied correctly in dev mode. Basic link format works pretty well but with permalinks activated (any format) I run into a not found error. The local domain works just fine.
Iād be glad if someone could push me into the right direction.
To all those who couldnāt find a solution, yet: Iām not aboslutely sure if your issues are related to mine at all but thanks to @kellymears Iāve been able to solve mine (assets not being loaded correctly & any permalink structure besides ābasicā wonāt work on yarn dev) by installing Browsersync.
Sorry I didnāt get to replying to this sooner but you should try again with acorn, sage and budās newest releases, which absolutely solve this problem (and many others!)