ganlanyuan / tiny-slider

Vanilla javascript slider for all purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webpack 5 Compiled with problems

Orest983 opened this issue · comments

Issue description:

import '../node_modules/tiny-slider/src/tiny-slider.scss';
triggers Webpack error

Compiled with problems:
×
WARNING in ./node_modules/tiny-slider/src/tiny-slider.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/tiny-slider/src/tiny-slider.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(100% * $count, $perpage) or calc(100% * $count / $perpage)

More info and automated migrator: https://sass-lang.com/d/slash-div

node_modules\tiny-slider\src\tiny-slider.scss 124:13 root stylesheet
WARNING in ./node_modules/tiny-slider/src/tiny-slider.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/tiny-slider/src/tiny-slider.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(100%, $count) or calc(100% / $count)

More info and automated migrator: https://sass-lang.com/d/slash-div

node_modules\tiny-slider\src\tiny-slider.scss 136:15 root stylesheet

Demo link/slider setting:

Tiny-slider version: Version-2.9.4
Browser name && version:
OS name && version: