<ul dir="auto">
<li>Electron version: 1.2.6</li>
<li>node: 6.2.0</li>
<li>npm: 3.10.3</li>
<li>Operating system: OS X 10.10.5</li>
</ul>
<p dir="auto">The following does not work with Electron but it works fine with vanilla Node.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="require('node-sass').renderSync({
  data: 's { a: ss }'
})"><pre class="notranslate"><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'node-sass'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">renderSync</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
  <span class="pl-c1">data</span>: <span class="pl-s">'s { a: ss }'</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<hr>
<p dir="auto">I've made a repo to reproduce this issue here: <a href="https://github.com/davej/electron-with-node-sass-test">https://github.com/davej/electron-with-node-sass-test</a></p>
<p dir="auto">Simply run:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install
npm start"><pre class="notranslate"><code class="notranslate">npm install
npm start
</code></pre></div>
<p dir="auto">You should see the following error when you run the app (you will also get the same error if you try to use <code class="notranslate">node-sass</code> in the renderer process):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="App threw an error during load
SyntaxError: Unexpected token u in JSON at position 0
    at Object.parse (native)
    at Object.module.exports.renderSync (/Users/dave/code/test/electron-with-node-sass/node_modules/node-sass/lib/index.js:420:40)
    at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/index.js:5:18)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at loadApplicationPackage (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:259:12)
    at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:301:5)"><pre class="notranslate"><code class="notranslate">App threw an error during load
SyntaxError: Unexpected token u in JSON at position 0
    at Object.parse (native)
    at Object.module.exports.renderSync (/Users/dave/code/test/electron-with-node-sass/node_modules/node-sass/lib/index.js:420:40)
    at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/index.js:5:18)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at loadApplicationPackage (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:259:12)
    at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:301:5)
</code></pre></div>
<p dir="auto">However when you run the code directly with node (<code class="notranslate">node index.js</code>) it runs ok with no issues. The error above occurs both when the code is run</p>
<p dir="auto"><a href="https://github.com/sass/node-sass/issues/1628" data-hovercard-type="issue" data-hovercard-url="/sass/node-sass/issues/1628/hovercard">Cross referencing with <code class="notranslate">node-sass</code> issue</a>.</p>
<ul dir="auto">
<li>Electron version: 1.2.6</li>
<li>node: 6.2.0</li>
<li>npm: 3.10.3</li>
<li>Operating system: OS X 10.10.5</li>
</ul>
<p dir="auto">The following does not work with Electron but it works fine with vanilla Node.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="require('node-sass').renderSync({
  data: 's { a: ss }'
})"><pre class="notranslate"><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'node-sass'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">renderSync</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
  <span class="pl-c1">data</span>: <span class="pl-s">'s { a: ss }'</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<hr>
<p dir="auto">I've made a repo to reproduce this issue here: <a href="https://github.com/davej/electron-with-node-sass-test">https://github.com/davej/electron-with-node-sass-test</a></p>
<p dir="auto">Simply run:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install
npm start"><pre class="notranslate"><code class="notranslate">npm install
npm start
</code></pre></div>
<p dir="auto">You should see the following error when you run the app (you will also get the same error if you try to use <code class="notranslate">node-sass</code> in the renderer process):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="App threw an error during load
SyntaxError: Unexpected token u in JSON at position 0
    at Object.parse (native)
    at Object.module.exports.renderSync (/Users/dave/code/test/electron-with-node-sass/node_modules/node-sass/lib/index.js:420:40)
    at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/index.js:5:18)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at loadApplicationPackage (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:259:12)
    at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:301:5)"><pre class="notranslate"><code class="notranslate">App threw an error during load
SyntaxError: Unexpected token u in JSON at position 0
    at Object.parse (native)
    at Object.module.exports.renderSync (/Users/dave/code/test/electron-with-node-sass/node_modules/node-sass/lib/index.js:420:40)
    at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/index.js:5:18)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at loadApplicationPackage (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:259:12)
    at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:301:5)
</code></pre></div>
<p dir="auto">However when you run the code directly with node (<code class="notranslate">node index.js</code>) it runs ok with no issues.</p>
<p dir="auto"><a href="https://github.com/sass/node-sass/issues/1628" data-hovercard-type="issue" data-hovercard-url="/sass/node-sass/issues/1628/hovercard">Cross referencing with <code class="notranslate">node-sass</code> issue</a>.</p>