You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
The mfb.scss file included in the npm distribution references_/_slidein.scss which is not included.
That makes mfb.scss almost unusable. That is
@import '~react-mfb/mfb.scss';
causes
ERROR in ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js?{}!./src/app/mfb.scss
Module build failed:
@import "_/_slidein";
^
File to import not found or unreadable: _/_slidein.
Solution
Include mfb/src/_ folder in the npm distribution.
Workaround
When using webpack with sass-loader
Include a copy of mfb/src/_ in your project's sources, e.g in src/_ folder
In webpack.config.js include:
module: {
rules: [
/*...*/
{
test: /\.scss$/,
use: [
'style-loader',
'css-loader',
{
loader: 'sass-loader',
options: {
/* or other directory where you've placed the copy of _*/
includePaths: ["src"]
}
}
]
}
]
},
The text was updated successfully, but these errors were encountered:
Problem
The
mfb.scss
file included in the npm distribution references_/_slidein.scss
which is not included.That makes
mfb.scss
almost unusable. That iscauses
Solution
Include mfb/src/_ folder in the npm distribution.
Workaround
When using
webpack
withsass-loader
src/_
folderwebpack.config.js
include:The text was updated successfully, but these errors were encountered: