-
-
Notifications
You must be signed in to change notification settings - Fork 15
BIG ISSUE: Infinite SASS compiling on OSX High Sierra #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I found that "gaze", a watcher library used by node-sass, is a cause of this issue. So I tried to use node-sass-chokidar, a thin wrapper of node-sass which uses "chokidar" as a watcher, instead of node-sass and it worked like a charm! Infinite SASS compiling issue has gone. I just have sent a pull request of this fix and hope it will be merged. |
i have the same issue but i am using High Sierra. I don't know how its happening. Sometimes also its not syncing properly... |
@dotnetdreamer I'm using High Sierra also. My issue has completely gone since I started using nativescript-dev-sass with node-sass-chokidar I created above. Speaking of syncing problem, it sometimes happens. LiveSync stops. showing "Refreshing application...". In my environment, I can usually fix it by pushing home button on iOS simulator. |
@hosikiti it didn't work for me. I saw your pull request and did changes accordingly but i didn't suceed. See the node-sass processes. I have to kill all those and re-start the build process and then it works fine... |
@dotnetdreamer I saw your processlist. I have never seen multiple node-sass processes like yours. Does it happen every time you execute |
@hosikiti not every time but most of the time....sometimes reach to 4 processes...but i have to kill all and re-run tns run... |
@dotnetdreamer Maybe it's worth a try. at your project root.
|
Hi @hosikiti , @dotnetdreamer , Could you check if you continue experiencing this is issue with versions 3.4 of NativeScript, modules and runtimes. I'm on High Sierra, npm 5.6, node 8.9.4 and NativeScript dependencies as listed below and cannot reproduce this issue. All NativeScript components versions information |
I too am seeing this on a brand new macbookpro (high sierra 10.13.2 (17C205)) trying to migrate a nativescript project from my old macbook. I've freshly installed everything: node (9.4 via nvm), npm, and nativescript. The app opens in the ios simulator but I do see the following in my console which might be related:
The fans ramp up and when I check the processlist there are ~8 node-sass processes running. Don't have the issue with the same project android on my windows 10 box. Here is more version info from my package.json:
|
I have the same problem as jeffswitzer. I noticed that ios biulds are taking a long time (4-5 minutes) but I haven't traced the source of that slowdown.
MacOS 10.13.2 High Sierra nativescript 3.4.1 I did notice that my app.css file is empty after compiling the app.scss file when this error occurs. |
In another issue they suggested to kill the process node-sass. This broke the endless loop, however, it might have some side effects as they hopefully won't start a process without purpose. |
have the same thing like @jeffswitzer and @chuckmitchell but I don't have |
Hi Guys, Can we please get some guidance on this issue. I also have the exact same issue on the 3 Mac High Sierra devices. 2 existing and a brand new device. The symptoms, errors and issues are exactly as described above. Regards, |
I've noticed this usually occurs on my machine when I use git to apply changes to SCSS files while LiveSync is running, e.g. You have to kill all I'm not sure what could be causing the issue consistently on other machines, but I suspect it may be a conflicting file watcher program. EDIT: I am running High Sierra, but unlike other people above, the issue only seems to occur after bulk-updating of files or when git makes modifications. |
The latest version of the plugin v1.5.0 utilizes the chokidar watcher. Would check whether you experience the infinite compiling using it? |
Hey Guys, Was having the same issue, I just had an empty css file causing the issue, just added something it and restarting the "tns run" fixed the issue |
Yes, issue is still there even updating it to 1.6.0 did not fix this issue. |
We've met the same problem. For a temporary solution, on our dev environment, we have uninstalled the nativescript-dev-sass plugin, installed and use the original sass instead. |
Hi, we have released new version of the [email protected] plugin that should fix that faulty behavior. You can give it a try by executing npm i nativescript-dev-sass --save-dev in your project folder. |
Closing as the nativescript-dev-sass plugin is no longer supported. In case you want to use SASS in your NativeScript application, you can use |
Use version 1.3.5 with following latest NativeScript components on OSX High Sierra.
When edit .scss file while using
tns run ios --emulator
, compiling scss to css starts, and as soon as my app runs on emulator, compiling starts again. It doesn't finish and I can stop compiling process only by sending CTRL + C.We have three developers and two of them who use High Sierra have this issue. Because there is no "infinite compiling issue` on one of our team members, who uses Sierra( not High Sierra ), I think it might be related to something in High Sierra.
Does anyone have any thoughts on how to fix this problem?
The text was updated successfully, but these errors were encountered: