question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependencies error with new laravel (5.4) webpack.

See original GitHub issue

Information

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:

  1. Go to node_modules/admin-lte/dist/css/AdminLTe.css:50.
  2. Change ../img/boxed-bg.jpg to ~/../img/boxed-bg.jpg.

How to duplicate this error

  1. Setup a (fresh) laravel 5.4 environment using the new webpack and npm.
  2. Add the admin-lte module and run the npm install command.
  3. 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:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
rasmusdenckercommented, Feb 21, 2017

@IkRookG For now it’s fixable by putting mix.options({ processCssUrls: false }); in your webpack.mix.js (See these release notes) 👍

1reaction
BarryPootercommented, Feb 22, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found