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

sass-module-importer fails to import include-media #29

Open
franekp opened this issue Nov 20, 2016 · 0 comments
Open

sass-module-importer fails to import include-media #29

franekp opened this issue Nov 20, 2016 · 0 comments

Comments

@franekp
Copy link

franekp commented Nov 20, 2016

When using include-media installed by yarn, index.js is imported instead of proper .scss file.
console output for a sass file that begins with "@import include-media":

yarn sass
yarn sass v0.16.1
$ gulp sass 
[14:10:08] Using gulpfile ~/.../gulpfile.js
[14:10:08] Starting 'sass'...
[14:10:08] gulp-notify: [Sass error] Error in plugin 'gulp-sass'
Message:
    node_modules/include-media/index.js
Error: Invalid CSS after "v": expected 1 selector or at-rule, was "var path = require("
        on line 1 of node_modules/include-media/index.js
>> var path = require('path');
   ^

Details:
    status: 1
    file: /home/.../node_modules/include-media/index.js
    line: 1
    column: 1
    formatted: Error: Invalid CSS after "v": expected 1 selector or at-rule, was "var path = require("
        on line 1 of node_modules/include-media/index.js
>> var path = require('path');
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

1 participant