I made a fresh roots (7.0.2) installation locally on Wordpress 4.0.1 running on MAMP Pro.
I followed the instructions step by step. I successfully installed previous versions before.
I do not use Bedrock so i added the following line to the wp-config.php file βdefine(βWP_ENVβ, βdevelopmentβ);β
The Installation βnpm installβ worked without any issue. After that i launched βgrunt watchβ without any issue as well. but after the theme activation, it does not load any css/less.
There is even a error message ββ¦manifest.json): failed to open stream: No such file or directoryβ¦β
It seem like roots want to load the the βmain.min.cssβ instead of βmain.cssβ.
I looked for hours for a solution, reinstalled it a several times, but with out any success.
And yes i did search online as well for a solution, but that did not work out either.
What do i miss? Thanks a lot for your help.
@cfx Thx a lot for your reply. Here is the full error message:
"Warning: file_get_contents(/Users/neongrain/Work/Venue/Webseite/wordpress-neu/wp-content/themes/venue-2/assets/manifest.json): failed to open stream: No such file or directory in /Users/neongrain/Work/Venue/Webseite/wordpress-neu/wp-content/themes/venue-2/lib/scripts.php on line 30"
It already in the wp-config.php file, i made a mistake in the description, i am sorry.
This happens if i just run grunt, it looks all fine to me as well:
Did you read the actual error message in your last post? Itβs telling you that thereβs a file missing. Have you checked to see if the file in the error message is actually missing?
What happens when you run grunt build? Please post the full results.
Yes I did read it, and yes the actual file was indeed missing, i noticed that already.
but why happens this with a fresh installtion?
Thanks a for the tip, i did run grunt build and it generated the missing file.
And it seems fine so far, it loads the css/less.
Then i started grunt watchβ¦
but as i started developing and making changes to main.less it does not seem to take any effect on the design. As i did understand it so far itβs that grunt build is to build actual final product with all the minified css and js files. What do i miss? Thanks a lot for your patience.
^ Benβs answer to your question might solve the issue.
Just for clarification, yes, grunt build compiles minified files (which are loading in your case) grunt dev is what you should be using during development, we just have to figure out why itβs not loading
Hey @benword you saved my day. that was it, i just moved define('WP_ENV', 'development');
over the line /* That's all, stop editing! Happy blogging. */? and now it works perfectly fine.
Thanks all who took the time to help my with this problem. i hope it helps others too.
Thx for clarification, i was getting confused. I was using grunt watch on my previous successful installations. I just found this really good explanation from heitorss about it
grunt watch will run grunt dev when something is modified;