Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCSS Import Error #69

Closed
mikemedoro opened this issue Jan 17, 2019 · 2 comments
Closed

SCSS Import Error #69

mikemedoro opened this issue Jan 17, 2019 · 2 comments

Comments

@mikemedoro
Copy link

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
Copy link
Member

MartijnCuppens commented Jan 18, 2019

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
Copy link
Author

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

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

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants