twbs / rfs

✩ Automates responsive resizing ✩
MIT License
3.31k stars 215 forks source link

SCSS Import Error #69

Closed mikemedoro closed 5 years ago

mikemedoro commented 5 years ago

Hello, I'm trying to import rfs.scss from node_modules into my project but keep getting the following error when Webpack tries to compile my Sass files:

Module build failed (from ./node_modules/css-loader/index.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):
    '~rfs/scss',
      Can't find stylesheet to import.
    '~rfs/scss',

I am able to import other CSS/SCSS files using:

@import
    '~normalize.css/normalize',
    '~sass-mq',
    '~rfs/scss',
    '~flickity/css/flickity';

It could be my setup, but RFS seems to be the only one throwing an error.

Any insight is appreciated and thanks for the great mixin.

MartijnCuppens commented 5 years ago

Hi @mikemedoro,

The documentation you're viewing is for v8 (next version). Documentation for the latest stable version can be found in the master branch: https://github.com/twbs/rfs/tree/master

If anything is still unclear, let me know!

mikemedoro commented 5 years ago

Ah! Sorry for the oversight there. I got it working by using this path:

@import 'node_modules/rfs/scss/_rfs.scss'

Thanks again!