Skip to content

not clear which file to import ... @import "sanitize.css/sanitize" #40

Open
@violinchris

Description

I think I am using this in a very typical way with node-sass, but I am having to make a change to node_modules/marx-css/scss/marx.scss to get things to work.

from my package.json

"scripts": {
  "build-css": "node-sass src/scss/ -o public/css/ --include-path node_modules/",
}

copy/paste from error i get when using npm run build-css

"status": 1,
"file": "node_modules/marx-css/scss/marx.scss",
"line": 3,
"column": 1,
"message": "It's not clear which file to import for '@import\"sanitize.css/sanitize\"'.\nCandidates:\n  sanitize.css/sanitize.scss\n  sanitize.css/sanitize.css\nPlease delete or rename all but one of these files."

to make this work, i need to make a change in node_modules/marx-css/scss/marx.scss from

@import 'sanitize.css/sanitize';

to

@import 'sanitize.css/sanitize.scss';

and just for reference, here is an example of my index.scss

$primary: yellow;
@import 'marx-css/scss/marx.scss';

Can the @import line in marx.scss be changed to include the .scss extension? Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      not clear which file to import ... @import "sanitize.css/sanitize" · Issue #40 · mblode/marx