Roots Discourse

Error following tutorial about slick-carousel

Hello !

I have an error following the turorial about installing slick-carousel with Sage 9 in https://roots.io/docs/sage/9.x/compiling-assets/#_3rd-party-packages.

When I add style to my sass, Webpack give me this :
error in ./node_modules/slick-carousel/slick/ajax-loader.gif

Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "from" argument must be of type string. Received undefined

(when override with variable :
$slick-font-path: “~slick-carousel/slick/fonts/”;
$slick-loader-path: “~slick-carousel/slick/”;
)

Do you know where the problem is ?

Thanks :slight_smile:

Is there actually a file node_modules/slick-carousel/slick/ajax-loader.gif in your project folder?

Yes there is one, with the same path

I have downgrade “file-loader” to ^5.1.0 and it’s work !

You may be interested in the Sage 9.1 update branch that should fix these kinds of issues:

1 Like