when I remove the .blade extension of the custom template for my homepage, the site doesn’t load any css at all. when i put it back to .php.blade, i get the original css from sage showing, but none of my new stuff and none of any HTML i added to the template - even though when i run yarn build it shows that the files were compiled. however, it continues to show file compilation messages for the exact same edited files (anything that wasn’t in the original sage 9) every time i run yarn build, no matter whether i’ve edited them in the meantime or not:
Do the changes ever show up? Are you on Windows? Is VirtualBox the hypervisor for Vagrant (VVV)? VBox is known to be slow on Windows if you are.
Confirm for me: accessing the website via the devUrl that you’ve specified in your config.json does bring you to the site (regardless of the state of the CSS). Also, confirm the same for localhost:3000.
Is just the CSS not working? Are there any Stylelint errors? Does running yarn lint:styles show any issues?
Is the publicPath shared above correct for your WordPress installation? You don’t happen to be doing anything with installing WordPress in a subdirectory or anything different.
Is your site being server with HTTPS? Is https:// in site_url or home?
When using yarn start you are only accessing the site from the proxyUrl, correct?
Sorry for all the questions. I’m just trying to pin point what is wrong as according to your config.json everything should work.
There’s a bunch of stuff I usually try when troubleshooting the build process that I’ve collected here:
confirmed that the devUrl and localhost bring up the site.
i actually disabled stylelint because it was driving me nuts - will it still not compile because of indentation or spacing issues? i’m coming from sage 8…
i’m not 100% sure what you mean by this, but i’m almost positive it’s the correct path. do you think i need to add anything in front of /wp-content/themes/48north?
i have tried both http and https (because i’ve been reading the other threads). can you confirm which one i should be using?
i have tried to access from both the proxy and devUrl
thank you so much for being so thorough! i will take a look at your troubleshooting thread.
Was this all working before? Or did it stop working all of a sudden? Because if it was working before then I wonder if retracing your steps could help to identify the issue.
I just tried installing a clean install of Sage (dev-master) with the Foundation preset and it works (using Valet as my development environment). I wonder if the issue has to do with the environment. Could you try creating/activating a new Sage install (with Foundation) within your themes directory just to confirm that that works?
doing that now, but this is a brand new sage install as of this AM. i’ve been trying to get it working all day. to confirm, when the message in the console asks:
Are you sure you want to overwrite the following files?
- styles/common/_variables.scss
- styles/components/_comments.scss
- styles/components/_forms.scss
- styles/components/_wp-classes.scss
- styles/layouts/_header.scss
(yes/no) [no]:
I’m supposed to write “yes” in order to be able to configure foundation correctly, correct?
This will give a verbose output of what is happening with Browsersync which isn’t necessarily the problem. If there are any errors in the output, share them here, otherwise, you can remove the prescribed code.
I’ve had this same issue a couple of times. Having everything working at the end of yesterday and after running yarn start, it should’ve compiled properly.
In the end I had to run yarn build, refresh the browser and everything worked fine for me!