Skip to content

Problem compiling custom bootstrap in scss | Error with relative paths #2170

@gperdomor

Description

@gperdomor

Please provide us with the following information:

  1. OS?
    macOS Sierra

  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
    angular-cli: 1.0.0-beta.14
    node: 6.5.0
    os: darwin x64

  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
    Install bootstrap-sass and create a new scss file src/scss/bootstrap.scss and copy the content of the original bootstrap.scss in that file... Why create this file? because i need to import some extra files to override bootstrap styles

  4. The log given by the failure. Normally this include a stack trace and some
    more information.
    ERROR in .//css-loader!.//postcss-loader!./~/sass-loader!./src/scss/bootstrap.scss
    Module not found: Error: Can't resolve '../fonts/bootstrap/glyphicons-halflings-regular.svg' in '/Users/xxxxxxxx/WebstormProjects/xxxxxxx/src/scss'

  5. Mention any other details that might be useful.
    In previous project, using react, i need to configure resolve-url-loader in webpack:

    {
    test: /\.scss$/,
    loader: ExtractTextPlugin.extract("style", 'css?sourceMap!resolve-url!sass?sourceMap'),
    }
    

Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: investigationRequires some digging to determine if action is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions