A
A
Aleks Kirilov2020-03-07 07:38:41
Pug
Aleks Kirilov, 2020-03-07 07:38:41

Gulp is not working, where is the error in the code?

Gives an error Cannot GET /
Here is the terminal:

[07:33:50] Using gulpfile D:\Программирование\Макеты сайтов\ДЛЯ ПОРТФОЛИО\internet magazine\gulpfile.js
[07:33:50] Starting 'default'...
[07:33:50] Starting 'dev'...
[07:33:50] Starting 'clean'...
[07:33:50] Finished 'clean' after 14 ms
[07:33:50] Starting 'pug'...
[07:33:50] Starting 'fonts'...
[07:33:50] Starting 'styles:dev'...
[07:33:50] Starting 'img:dev'...
[07:33:50] Starting 'libsJS:dev'...
[07:33:50] Starting 'js:dev'...
[07:33:50] Starting 'svg'...
[07:33:50] Plumber found unhandled error:
 Error in plugin "gulp-pug"
Message:
    D:\Программирование\Макеты сайтов\ДЛЯ ПОРТФОЛИО\internet magazine\dev\pug\modules\main-nav\main-nav.pug:2:1
    1|       nav.header__main-nav.main-nav
  > 2|         ul.menu-nav__list
-------^
    3|           li.main-nav__item
    4|             a(href="").main-nav__link Самокаты
    5|           li.main-nav__item

unexpected token "indent"
Details:
    code: PUG:INVALID_TOKEN
    msg: unexpected token "indent"
    line: 2
    column: 1
    filename: D:\Программирование\Макеты сайтов\ДЛЯ ПОРТФОЛИО\internet magazine\dev\pug\modules\main-nav\main-nav.pug
    src:       nav.header__main-nav.main-nav
        ul.menu-nav__list
          li.main-nav__item
            a(href="").main-nav__link Самокаты
          li.main-nav__item
            a(href="").main-nav__link Беговелы
          li.main-nav__item
            a(href="").main-nav__link Велосипеды
          li.main-nav__item
            a(href="").main-nav__link Ролики
          li.main-nav__item
            a(href="").main-nav__link Скейты
          li.main-nav__item
            a(href="").main-nav__link Батуты
          li.main-nav__item
            a(href="").main-nav__link Аксессуары и запчасти
          li.main-nav__item
            a(href="").main-nav__link Еще
    toJSON: function () {
    return {
      code: this.code,
      msg: this.msg,
      line: this.line,
      column: this.column,
      filename: this.filename
    };
  }

[07:33:50] Finished 'pug' after 158 ms
[07:33:51] Finished 'styles:dev' after 1.63 s
[07:33:51] Finished 'img:dev' after 1.63 s
[07:33:51] Finished 'libsJS:dev' after 1.63 s
[07:33:51] Finished 'js:dev' after 1.63 s
[07:33:51] Finished 'svg' after 1.63 s
[07:33:51] Finished 'fonts' after 1.64 s
[07:33:51] Finished 'dev' after 1.65 s
[07:33:51] Starting 'watch'...
[07:33:51] Starting 'serve'...
[Browsersync] Access URLs:
 -------------------------------------
       Local: http://localhost:3002
    External: http://192.168.1.56:3002
 -------------------------------------
          UI: http://localhost:3003
 UI External: http://localhost:3003
 -------------------------------------
[Browsersync] Serving files from: ./build
[07:36:30] Starting 'pug'...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question