A javascript scrollbar plugin that hides the native scrollbars, provides custom styleable overlay scrollbars, and preserves the native functionality and feel.
Describe the bug
I am trying to use the 'overlayscrollbars/css/OverlayScrollbars.css' in my project, but when webpack is compiling it throw this error:
ERROR in ./node_modules/overlayscrollbars/css/OverlayScrollbars.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/react-scripts/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[8].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[8].use[2]!./node_modules/sass-loader/dist/cjs.js!./node_modules/source-map-loader/dist/cjs.js!./node_modules/overlayscrollbars/css/OverlayScrollbars.css)
Module build failed (from ./node_modules/react-scripts/node_modules/postcss-loader/dist/cjs.js):
SyntaxError
(2:7) /Users/j/projects/frontend-react/node_modules/overlayscrollbars/css/OverlayScrollbars.css Unknown word
To Reproduce
Add the following line to the app.js file:
import 'overlayscrollbars/css/OverlayScrollbars.css'
Describe the bug I am trying to use the 'overlayscrollbars/css/OverlayScrollbars.css' in my project, but when webpack is compiling it throw this error:
To Reproduce Add the following line to the app.js file: import 'overlayscrollbars/css/OverlayScrollbars.css'