I'm trying to import the react-bootstrap-autosuggest library into my project. I followed the instructions and installed react-bootstrap and react-bootstrap-autosuggest as dependencies, and configured the webpack loader sass-loader as dev dependency.
But the Autosuggest.js is trying to import 'Autosuggest.scss' and so it cannot find the file, which by the way is not present in the lib folder, and so reports the error "Cannot resolve module 'Autosuggest.scss'".
I've tried copying the scss file from the src folder to the lib folder and modifying the Autosuggest.js line 11 (line 38 in lib/Autosuggest.js file) with require('./Autosuggest.scss'), but then it fails once again searching for bootstrap scss files.
I'm trying to import the react-bootstrap-autosuggest library into my project. I followed the instructions and installed react-bootstrap and react-bootstrap-autosuggest as dependencies, and configured the webpack loader sass-loader as dev dependency.
But the Autosuggest.js is trying to import 'Autosuggest.scss' and so it cannot find the file, which by the way is not present in the lib folder, and so reports the error "Cannot resolve module 'Autosuggest.scss'".
I've tried copying the scss file from the src folder to the lib folder and modifying the Autosuggest.js line 11 (line 38 in lib/Autosuggest.js file) with
require('./Autosuggest.scss')
, but then it fails once again searching for bootstrap scss files.Am I missing some configuration?
Thanks, Rodrigo