vinkla / wordplate

A boilerplate for WordPress, built with Composer and designed with sensible defaults.
2.12k stars 155 forks source link

Laravel Mix not compiling on fresh install #181

Closed c-fitzmaurice closed 7 years ago

c-fitzmaurice commented 7 years ago

Issue: On a fresh install from composer, Laravel Mix will not compile. Produces the following error:

Error: ENOENT: no such file or directory, open '/Users/Colin/Sites/wordplate/public/themes/wordplate/assets/mix-manifest.json'

Steps to reproduce:

composer create-project wordplate/wordplate
npm install
npm run dev
vinkla commented 7 years ago

Is there an mix-manifest.json file in the assets directory?

c-fitzmaurice commented 7 years ago

On first run of Mix, it should create the mix-manifest.json if it's not present, no?

vinkla commented 7 years ago

Do you get an error when you run npm dev run?

vinkla commented 7 years ago

I don't have your issue but in my case the script can't run since there are no assets directory.

I'll push a fix for this as soon as possible.

c-fitzmaurice commented 7 years ago

Yes, I get the error when I run npm run dev on a fresh install of the project, without editing any code.

vinkla commented 7 years ago

Okay, then we're having the same issue. Create the assets directory in the theme and you'll be good to go. I'll push a fix for this and release a new version. Thanks for reporting the issue!

c-fitzmaurice commented 7 years ago

Awesome, thanks for the instant reply. Great project!

vinkla commented 7 years ago

This has been fixed in 5.3.1.