Coder Social home page Coder Social logo

Comments (11)

quaertym avatar quaertym commented on August 16, 2024

I use bootstrap-sass and this addon in many projects. This is the line to add to your appname.scss (remove underscore from name):

@import "../../bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap";

from ember-cli-compass-compiler.

andrewobrien avatar andrewobrien commented on August 16, 2024

I have the exact same issue as @sumeetattree, not picking up bootstrap mixins or variables... using bootstrap-sass-official#3.3.1

from ember-cli-compass-compiler.

quaertym avatar quaertym commented on August 16, 2024

@andrewobrien Have you seen my previous comment?

from ember-cli-compass-compiler.

lolmaus avatar lolmaus commented on August 16, 2024

Try this in Brocfile.js:

var app = new EmberApp({
  compassOptions: {
    outputStyle: 'expanded',
    importPath: [
      'bower_components/bootstrap-sass-official/assets/stylesheets',
      'bower_components/breakpoint-sass/stylesheets',
      'bower_components/singularity/stylesheets'
    ]
    //require: []
  }
});

Reference: http://hbrysiewicz.github.io/2014-10-14-ember-bootstrap-sass-summernote.html

from ember-cli-compass-compiler.

lolmaus avatar lolmaus commented on August 16, 2024

Alternatively, you can create a config.rb and add the following:

add_import_path 'bower_components/bootstrap-sass-official/assets/stylesheets'
add_import_path 'bower_components/breakpoint-sass/stylesheets'
add_import_path 'bower_components/singularity/stylesheets'

from ember-cli-compass-compiler.

quaertym avatar quaertym commented on August 16, 2024

@sumeetattree Please close this issue, if it fixed by one of the answers.

from ember-cli-compass-compiler.

bj-mcduck avatar bj-mcduck commented on August 16, 2024

Maybe this could be added to the docs?

from ember-cli-compass-compiler.

quaertym avatar quaertym commented on August 16, 2024

@brandonjmckay I'd love a PR if you have time.

from ember-cli-compass-compiler.

Baril27 avatar Baril27 commented on August 16, 2024

I have run into a very similar issue in my project. @sumeetattree did you ever find a fix for your issues when importing the mixin 'font-smoothing'. Seems to be very similar to my issue when trying to use variables within my other .scss files in app/styles.

Here is my app.scss:

@import "compass";

@import "variables";
@import "mixins";
@import "global";

And here is the error I got in console:
NOTE: '$color-darkGrey-3' is declared in app/styles/variables.scss and called in app/styles/global.scss

directory tmp/compass_compiler-output_path-rtFm3mTj.tmp/assets
    write tmp/compass_compiler-output_path-rtFm3mTj.tmp/assets/app.css
    error app/styles/global.scss (Line 6: Undefined variable: "$color-darkGrey-3".)
    write tmp/compass_compiler-output_path-rtFm3mTj.tmp/assets/mixins.css
    write tmp/compass_compiler-output_path-rtFm3mTj.tmp/assets/variables.css
Compilation failed in 1 files.


Command failed: /bin/sh -c compass compile --output-style=compressed --sass-dir=app/styles --css-dir="/Users/ericbaril/Git/Spinlister/spinlister-www-ember/tmp/compass_compiler-output_path-rtFm3mTj.tmp/assets"

Error: Command failed: /bin/sh -c compass compile --output-style=compressed --sass-dir=app/styles --css-dir="/Users/ericbaril/Git/Spinlister/spinlister-www-ember/tmp/compass_compiler-output_path-rtFm3mTj.tmp/assets"

from ember-cli-compass-compiler.

bj-mcduck avatar bj-mcduck commented on August 16, 2024

Ya, I shouldn't be suggesting that if I can't do it. @quaertym Sorry for that.

from ember-cli-compass-compiler.

prudvi avatar prudvi commented on August 16, 2024

#37 (comment)

facing above same issue and
here i am adding my issue

error app/styles/dom/date_pickers.scss (Line 21: Undefined variable: "$midgrey".)
Compilation failed in 48 files.

Command failed: /bin/sh -c compass compile --output-style=compressed --sass-dir=app/styles --css-dir="/home/indiapc_dev_05/OfficeAPP/emberCLI/my-new-app/tmp/compass_compiler-output_path-3WaMIRMY.tmp/assets"

rror: Command failed: /bin/sh -c compass compile --output-style=compressed --sass-dir=app/styles --css-dir="/home/indiapc_dev_05/OfficeAPP/emberCLI/my-new-app/tmp/compass_compiler-output_path-3WaMIRMY.tmp/assets"

from ember-cli-compass-compiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.