Dependencies error with new laravel (5.4) webpack.
See original GitHub issueInformation
With the release of the new laravel (5.4) and the default usage of the new webpack instead of gulp to compile all resources using npm run dev
also came a new way to load url’s in sass. Instead of paths like; ../img/img.jpg
there now a need to have the paths look like this: ~/../img/img.jpg
.
I’m not really sure how non-laravel projects react to this change thus why I am making this issue.
The changes that need to be made are as follows:
- Go to
node_modules/admin-lte/dist/css/AdminLTe.css:50
. - Change
../img/boxed-bg.jpg
to~/../img/boxed-bg.jpg
.
How to duplicate this error
- Setup a (fresh) laravel 5.4 environment using the new webpack and npm.
- Add the admin-lte module and run the
npm install
command. - After the install is done, run
npm run dev
.
Exact error relevant for the AdminLTE module:
These dependencies were not found in node_modules:
* ../img/boxed-bg.jpg
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:12 (2 by maintainers)
Top Results From Across the Web
NPM issues with Laravel 5.4.21 - Laracasts
Hello, fresh fresh newb and hitting an issue with NPM. Am unable to run: Copy Code npm run dev. I'm on Windows 7...
Read more >webpack - Laravel Mix: These dependencies were not found
I have a fresh install of Laravel 5.4.
Read more >Upgrade Guide - The PHP Framework For Web Artisans
Update the following dependencies in your composer.json file: ... However, to ease the upgrade process, a new laravel/legacy-factories package has been ...
Read more >Installation | Laravel Mix Documentation
You won't find a webpack.config.js file in your project root. By default, Laravel defers to the config file from this repo. However, should...
Read more >laravel-mix - npm
The power of webpack, distilled for the rest of us.. Latest version: 6.0.49, last published: 7 months ago. Start using laravel-mix in your ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@IkRookG For now it’s fixable by putting
mix.options({ processCssUrls: false });
in yourwebpack.mix.js
(See these release notes) 👍@dondencker Hey thanks for filling in how to reproduce this error, I guess I was a little bit too quick with explaining.
Also the
processCssUrls
option does seem to fix this behaviour, so thanks for that suggestion 👍 , that’ll save me the headache of manually doing this on every update for now.