Giter VIP home page Giter VIP logo

Comments (9)

SpiritLevel avatar SpiritLevel commented on July 18, 2024 1

Yup. It was the file watcher; even though I eventually disable it, it initially tries to compile everything and so outputs garbled css for the module...Thanks :)

from silverstripe-widgets.

dhensby avatar dhensby commented on July 18, 2024

You need to install compass locally when you install sass.

See https://github.com/BetterBrief/vagrant-skeleton/blob/master/scripts/sass.sh for what's needed

from silverstripe-widgets.

SpiritLevel avatar SpiritLevel commented on July 18, 2024

Oh, I thought there was a move away from compass...in any case, shouldn't widgets just work out of the box after being installed with composer and enabled in a yml file, without needing sass or compass ?

from silverstripe-widgets.

robbieaverill avatar robbieaverill commented on July 18, 2024

They do- compass is for compiling the sass source into CSS (which gets used by the module)

from silverstripe-widgets.

SpiritLevel avatar SpiritLevel commented on July 18, 2024

Right, so only the css, not the sass or compass, is needed to run the module. Understood. But, after only doing a composer require on blog, widgets, and comments, and enabling them in config.yml, I get the following error when creating a new blog:

screenshot from 2017-07-02 11-27-47

I thought it might be due to having an scss file watcher active in PHPStorm but the error occurs even after turning this off.

So, I installed comments, widgets, and blog in a fresh instance of SS3.6.1 and this problem doesn't arise! Very strange. I'll re-build the site above in this fresh install and see if I can reproduce the error :\

from silverstripe-widgets.

dhensby avatar dhensby commented on July 18, 2024

are you using sass in your current project? I'm not sure how or why it would be trying to build the widget module css even if you were :/

from silverstripe-widgets.

SpiritLevel avatar SpiritLevel commented on July 18, 2024

Yes, I'm using scss but not compass. Yes, weird that SS is trying to compile the scss. I'll reassemble the site and see if the problem returns...

from silverstripe-widgets.

dhensby avatar dhensby commented on July 18, 2024

Are you using a "watcher" or a silverstripe-sass module that is being overly aggressive with it's css compilation (ie: it's compiling CSS in all modules rather than just your project/theme)?

from silverstripe-widgets.

SpiritLevel avatar SpiritLevel commented on July 18, 2024

I had a scss file watcher and a linter active in PHPStorm. I turned them off and still got the same error. I am only using SS3.6.1 plus blog, comments, and widgets modules. I'll try this again tomorrow. Thanks for considering this wee conundrum :)

from silverstripe-widgets.

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.