-
Notifications
You must be signed in to change notification settings - Fork 807
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
mix.version() error: Error: ENOENT: no such file or directory, open '/css/app.css' #1326
Comments
Changing to mix
.setPublicPath('./')
.standaloneSass('scss/app.scss', 'css/')
.sourceMaps()
.version(); |
It seems I've closed it too early. When I tried to compile for production with Also, using The only time that I've managed to make it work with |
Any update on this @JeffreyWay .. I am also having this problem... My config is
it then creates the
I am doing this inside of a WordPress Theme. Here is the error log
And here is the full debug.log file
Running Laravel-Mix 1.7.2 |
Same problem here.
produces
and therefore the error laravel-mix 1.7.2 EDIT: Related to #1373 |
Same problem stand alone php
|
I had a problem using Mix in a Craft project with this minimal
With the above, the I used the
|
since the public path is currently used straight in a regex, it's the
|
Have tries to use laravel-mix in another project but had issues with getting all the output files in the desired path. Doing My specific case was this
|
For those looking for a better solution, often the output of the error is caused by: mix.webpackConfig({
...
output: {
publicPath: "/",
}
...
}); Think I stackoverflow'ed from elsewhere and unintentionally caused this error. If you require that public path in your webpack config, then yea, you can use |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Yep ! @andyblackwell . your comment saves my day |
I'm using standalone version of
laravel-mix@1.6.1
withnpm@5.5.1
and I'm only compilingscss
file:When run with
version()
it throws an error:When I remove call to
version()
- it does compile without any issues, but of course, manifest does not have version parameter.I also tried to changing the public path to the relative
./
:but this has resulted with the same error (except for the path, which now was showing as absolute) and
mix-manifest.json
has cut first letter from the directory - still without the version present:The text was updated successfully, but these errors were encountered: