Electronic compilation: Do not use Stylus

I am working on an application with electron-compileand I had a strange problem when I cannot compile my files

I know that the problem is not in my styles, because they still do not load when I change them to

body {
  background-color: red;
}

Loading styles arent because, apparently, the styles cannot be compiled. When I open the stylesheet in DevTools, I get the following:

Failed to compile /path/to/src/renderer/styles/styles.styl: ENOENT: no such file or directory, stat ''
Error: ENOENT: no such file or directory, stat ''

I checked several times and the path is correct.

Another reason I know that the problem is with electron-compileor maybe just electronbecause if I change the file and recompile it, loading styles, but if I reload the page, it will disappear.

+4
source share
1

, , @import , styl.

:

@import 'styl/global/_common';

0

Source: https://habr.com/ru/post/1680266/


All Articles