Answer the question
In order to leave comments, you need to log in
What is the cause of the gulp watch error?
$ gulp watch
[09:56:47] Using gulpfile E:\WM\webdes_github\gulpfile.js
[09:56:47] Starting 'browser-sync'...
[09:56:47] Finished 'browser-sync' after 117 ms
[09:56:47] Starting 'sass'...
[Browsersync] 1 file changed (main.css)
[09:56:47] Finished 'sass' after 57 ms
[09:56:47] Starting 'watch'...
[09:56:47] Finished 'watch' after 11 ms
[Browsersync] Access URLs:
--------------------------------------
Local: http://localhost:3000
External: http://192.168.1.110:3000
--------------------------------------
UI: http://localhost:3001
UI External: http://192.168.1.110:3001
--------------------------------------
[Browsersync] Serving files from: app
[09:57:11] Starting 'sass'...
[Browsersync] 1 file changed (main.css)
[09:57:11] Finished 'sass' after 33 ms
[09:57:14] Starting 'sass'...
[Browsersync] 1 file changed (main.css)
[09:57:14] Finished 'sass' after 21 ms
[09:57:15] Starting 'sass'...
[Browsersync] 1 file changed (main.css)
[09:57:15] Finished 'sass' after 22 ms
[09:57:26] Starting 'sass'...
[Browsersync] 1 file changed (main.css)
[09:57:26] Finished 'sass' after 23 ms
[09:57:28] Starting 'sass'...
[Browsersync] 1 file changed (main.css)
[09:57:28] Finished 'sass' after 17 ms
[09:57:31] Starting 'sass'...
events.js:167
throw er; // Unhandled 'error' event
^
Error: app\sass\main.sass
Error: Invalid CSS after "...lor: #dddddd; }": expected 1 selector or at-rule, was "padding: {}"
on line 2 of app/sass/main.sass
>> background-color: #dddddd; }
-----------------------------^
at options.error (E:\WM\webdes_github\node_modules\node-sass\lib\index.js:291:26)
Emitted 'error' event at:
at DestroyableTransform.onerror (E:\WM\webdes_github\node_modules\vinyl-fs\node_modules\readable-stream\lib\_stream_readable.js:558:12)
at DestroyableTransform.emit (events.js:182:13)
at onwriteError (E:\WM\webdes_github\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:449:12)
at onwrite (E:\WM\webdes_github\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:470:11)
at WritableState.onwrite (E:\WM\webdes_github\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:180:5)
at DestroyableTransform.afterTransform (E:\WM\webdes_github\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:93:3)
at errorM (E:\WM\webdes_github\node_modules\gulp-sass\index.js:118:12)
at Object.callback (E:\WM\webdes_github\node_modules\gulp-sass\index.js:127:16)
at options.error (E:\WM\webdes_github\node_modules\node-sass\lib\index.js:294:32)
Answer the question
In order to leave comments, you need to log in
Invalid CSS after "...lor: #dddddd; }": expected 1 selector or at-rule, was " padding: {} "
on line 2 of app/sass/main.sass
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question