question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Empty compilation output

See original GitHub issue

Hi,

Compilation generates empty output. I set couple of sass/scss files :

  • fubar.css
  • fubar.sass
  • fubar.scss

it compiles a app.css file with only content from the fubar.css file. The app.css.map contain the following informations : "sourcesContent":["h1{\n font-weight: 200;\n}\n","",""] where the two last empty string comme from fubar.sass and fubar.scss

However fubar.sass and fubar.scss are really compiled. If I drop some error in those files, brunch ouput thoses error in the console.

Any idea ?

  • sass --version : Sass 3.4.19
  • brunch --version : 1.8.5
  • node --version : v0.10.32
  • sass-brunch version : 1.9.1

Brunch config, coming from elixir initialisation :

exports.config = {
  // See http://brunch.io/#documentation for docs.
  files: {
    javascripts: {
      joinTo: "js/app.js"
    },
    stylesheets: {
      joinTo: "css/app.css"
    },
    templates: {
      joinTo: "js/app.js"
    }
  },

  conventions: {
    assets: /^(web\/static\/assets)/
  },

  // Phoenix paths configuration
  paths: {
    // Dependencies and current project directories to watch
    watched: [
      "deps/phoenix/web/static",
      "deps/phoenix_html/web/static",
      "web/static",
      "test/static"
    ],

    // Where to compile files to
    public: "priv/static"
  },

  // Configure your plugins
  plugins: {
    babel: {
      // Do not use ES6 compiler in vendor code
      ignore: [/web\/static\/vendor/]
    },
    sass: {
      // debug: 'comments',
      // mode: 'native',
      options: {
        includePaths: ['bower_components/foundation/scss'],
      }
    }
  },

  modules: {
    autoRequire: {
      "js/app.js": ["web/static/js/app"]
    }
  },

  npm: {
    enabled: true
  }
};

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kurodacommented, Nov 15, 2017

I found a workaround.

Put these lines to the brunch-config.js:

  watcher: {
    usePolling: true
  }

As the documentation of Brunch says, watcher gets slower but can be more reliable by setting true to this option.

At least on my environment, situation has improved cleary.

0reactions
otuvcommented, Apr 13, 2018

Solved my problem on Ubuntu 16.04.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My output in the compiler is empty, but the program has 0 errors
I have tried running the program, but no output was shown in the compiler even though there are no errors while compiling.
Read more >
Compiled output files are empty (0 bytes) #746 - GitHub
Compiled output files are empty (0 bytes) #746 ... are empty (file size 0 bytes)!. In particular, the compile+upload command used is:.
Read more >
Help! Empty output when I compile a simp - C++ Forum
When i compile the code i have 0 error but the output is empty when I run it only the black screen sets...
Read more >
[PyOpenCL] Non-empty compiler output warning from Intel ...
Hi all, Recently I have been playing around with OpenCL on the Intel Xeon Phi. A quirk of the OpenCL stack (which also...
Read more >
Compiler Errors - GameMaker Manual
These errors will be caught by GameMaker as the game is being compiled and this information will also be shown in the Compiler...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found