brunch / stylus-brunch

Adds Stylus support to Brunch
MIT License
21 stars 2 forks source link

Endless compiling #53

Closed kana-sama closed 7 years ago

kana-sama commented 7 years ago

When I have .styl files in project, I get this:

> node -v
v7.2.0
> brunch build
(node:23284) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Path must be a string. Received undefined
(node:23284) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
29 Nov 01:56:17 - info: compiling
29 Nov 01:56:21 - info: compiling.
29 Nov 01:56:25 - info: compiling..
29 Nov 01:56:29 - info: compiling...
denysdovhan commented 7 years ago

Hi, can you, please, create a repo that reproduce this bug? I'll try fix this problem.

kana-sama commented 7 years ago

https://github.com/kana-sama/stylus_brunch_bug It is blank phoenix project + stylus-brunch, but when I launch brunch independently, I get the same trouble. Stylesheets are here - https://github.com/kana-sama/stylus_brunch_bug/tree/master/web/static/css

denysdovhan commented 7 years ago

Yeah, thank you. Gonna jump in sources and try to find the root of problem. Stay in touch.

denysdovhan commented 7 years ago

BTW, try to downgrade you node's version to 6 LTS. It may help.

kana-sama commented 7 years ago

downgrading removes deprecation warning, but all the rest is the same.

denysdovhan commented 7 years ago

@kana-sama did you downgraded to 6? Try to downgrade lower, if you can.

shvaikalesh commented 7 years ago

Hey @kana-sama, thanks for reaching out.

Please try with "brunch": "^2" in package.json (works for me in the provided repo).

kana-sama commented 7 years ago

@shvaikalesh it didn't help me @denysdovhan node v5 didn't help too

$ cat package.json | grep stylus-brunch
    "stylus-brunch": "^2",
$ node -v
v5.12.0
$ brunch build
03 Dec 18:08:04 - info: compiling
03 Dec 18:08:08 - info: compiling.
03 Dec 18:08:12 - info: compiling..
03 Dec 18:08:16 - info: compiling...
03 Dec 18:08:20 - info: compiling
03 Dec 18:08:24 - info: compiling.
03 Dec 18:08:28 - info: compiling..
03 Dec 18:08:32 - info: still compiling...
kana-sama commented 7 years ago

Please try with "brunch": "^2" in package.json (works for me in the provided repo).

Finally, it fixes my problem on other machine 🌚 npm i --save-dev with "brunch": "^2" on my machine updates to 2.8.0, but on other machine (with node4) it updates to 2.9.1 Thanks you.

timnew commented 7 years ago

I still suffer from this issue, is it fixed? Or I have to downgrade it ?! I'm using "stylus-brunch": "^2.10.0", "brunch": "2.7.4", and node v6.9.0

shvaikalesh commented 7 years ago

@timnew Hey, try latest (^2) Brunch.

Generally, plugins with version ~2.x are compatible only with Brunch >=2.x