F
F
fiter2017-04-26 00:14:51
JavaScript
fiter, 2017-04-26 00:14:51

How to fix Failed to compile error?

Laravel 5.4, mix, css-loader
Problem with jquery.filer package due to nested css imports
The command throws an npm run deverror:

ERROR  Failed to compile with 4 errors                                                                                                  
This dependency was not found:

    * -!../../../node_modules/css-loader/index.js?{"url":true,"sourceMap":false}!../assets/fonts/jquery.filer-icons/jquery-filer.css in ./~/css-loader?{"url":true,"sourceMap":false}!./~/postcss-loader?{"sourceMap":false}!./~/resolve-url-loader!./~/sass-loader/lib/loader.js?{"precision":8,"outputStyle":"expanded","sourceMap":true}!./resources/assets/sass/app.scss

    To install it, you can run: npm install --save -!../../../node_modules/css-loader/index.js?{"url":true,"sourceMap":false}!../assets/fonts/jquery.filer-icons/jquery-filer.css

In app.scss I import the main jquery.filer.css
@import "node_modules/jquery.filer/css/jquery.filer";

In jquery.filer.css there is a css connection with fonts, which gives an error
@import url('../assets/fonts/jquery.filer-icons/jquery-filer.css');

There needs to be some other way to register, or what? But what?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question