E
E
Eugene2016-11-11 10:52:07
JavaScript
Eugene, 2016-11-11 10:52:07

Why is gulp-jade-inheritance throwing an unexpected text error?

Good afternoon. Tell me what could be the problem with the gulp-jade-inheritance plugin. The collector gives an error and its roots cannot be found.
Mistake

Plumber found unhandled error:
 Error in plugin 'gulp-jade-inheritance'
Message:
    unexpected text -
   app/jade/blocks/hall.jade

FILE hall.jade
mixin hall(data)
    +b.ARTICLE.hall(class=(data.mod || ''))
        +e.main
            +e.HEADER.header
                +e.H2.title= data.title
                +e.title_section= data.section
                +e.subtitle варианты рассадки:
                +e.TABLE.table_seating
                    -
                        var rows = {
                            'Банкет:': '550',
                            'Класс:': '420',
                            'Театр:': '1 000',
                            'Фуршет:': '1 000'
                        }
                    each value, key in rows
                        +e.TR.row
                            +e.TD.cell= key
                            +e.TD.cell= value

                +e.TABLE.table_options
                    -
                        var rows = {
                            'Площадь, м2': '1152',
                            'Высота мин': '6,9',
                            'Высота макс': '6,9',
                            'Длина': '55,25',
                            'Щирина': '27,12'
                        }
                    each value, key in rows
                        +e.TR.row
                            +e.TD.cell= key
                            +e.TD.cell= value

        +e.slider
            +b.slider
                each i in [1, 2, 3]
                    +e.item
                        +e.IMG.img(src='i/hall-#{i}.jpg' srcset='' alt='')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-02-01
@dragonesis

I never found a solution, the only thing I understood is that everything works in node.js 4.x

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question