Skip to content

Refactoring a path with ".." in it causes an issue. #91

@IngwiePhoenix

Description

@IngwiePhoenix

I am currently building a "custom" Bootstrap by going haywire with the config, and creating my own entry SCSS file. Truth be told, I am not familiar with SCSS. It's my first time of use.

I am getting this error:

    ERROR in ./~/css-loader?keepSpecialComments=0&processImport=true&rebase=true&relativeTo=/Users/Ingwie/Work/BIRD3&shorthandCompacting=true&target=/Users/Ingwie/Work/BIRD3/cdn/app!./~/sass-loader?includePaths[]=/Users/Ingwie/Work/BIRD3/bower_components/bootstrap-sass/assets/stylesheets&includePaths[]=/Users/Ingwie/Work/BIRD3/bower_components&includePaths[]=/Users/Ingwie/Work/BIRD3/node_modules&includePaths[]=/Users/Ingwie/Work/BIRD3/themes!./web-lib/bootstrapper.scss
    Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/glyphicons-halflings-regular.ttf in /Users/Ingwie/Work/BIRD3/web-lib
    resolve file
      /Users/Ingwie/Work/BIRD3/fonts/glyphicons-halflings-regular.ttf doesn't exist
      /Users/Ingwie/Work/BIRD3/fonts/glyphicons-halflings-regular.ttf.js doesn't exist
      /Users/Ingwie/Work/BIRD3/fonts/glyphicons-halflings-regular.ttf.json doesn't exist
      /Users/Ingwie/Work/BIRD3/fonts/glyphicons-halflings-regular.ttf.oj doesn't exist
    resolve directory
      /Users/Ingwie/Work/BIRD3/fonts/glyphicons-halflings-regular.ttf/package.json doesn't exist (directory description file)
      /Users/Ingwie/Work/BIRD3/fonts/glyphicons-halflings-regular.ttf doesn't exist (directory default file)
    [/Users/Ingwie/Work/BIRD3/fonts/glyphicons-halflings-regular.ttf]
    [/Users/Ingwie/Work/BIRD3/fonts/glyphicons-halflings-regular.ttf.js]
    [/Users/Ingwie/Work/BIRD3/fonts/glyphicons-halflings-regular.ttf.json]
    [/Users/Ingwie/Work/BIRD3/fonts/glyphicons-halflings-regular.ttf.oj]
     @ ./~/css-loader?keepSpecialComments=0&processImport=true&rebase=true&relativeTo=/Users/Ingwie/Work/BIRD3&shorthandCompacting=true&target=/Users/Ingwie/Work/BIRD3/cdn/app!./~/sass-loader?includePaths[]=/Users/Ingwie/Work/BIRD3/bower_components/bootstrap-sass/assets/stylesheets&includePaths[]=/Users/Ingwie/Work/BIRD3/bower_components&includePaths[]=/Users/Ingwie/Work/BIRD3/node_modules&includePaths[]=/Users/Ingwie/Work/BIRD3/themes!./web-lib/bootstrapper.scss 3:3646-3698

In Bootstrap's gylphcons.scss file, they refference the font files with "../glyphs.svg", for instance. Using the plain CSS version let's this work and resolve. But it appears that this module doesn't play nicely with this option.

For now I am commenting the glyphs out (I am using font-awesome too anyway) but would like to know if this could be resolved. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions