G
G
GIRU2020-01-05 23:15:44
Pug
GIRU, 2020-01-05 23:15:44

Error while compiling pug?

Hello! Started making a new project on a new build. And at the start it gives an error when compiling pug. I am using bemto . And the error is in connecting it but I don't know where exactly the error is.

>
ERROR in Template execution failed: TypeError: clone is not a function

ERROR in   TypeError: clone is not a function

  - index.pug:19 get_bemto_settings
    [.]/[html-webpack-plugin]/lib/loader.js!./src/pug/pages/index.pug:19:18

  - index.pug:218 Object.pug_interp
    [.]/[html-webpack-plugin]/lib/loader.js!./src/pug/pages/index.pug:218:16

  - index.pug:647 Object.pug_interp [as header]
    [.]/[html-webpack-plugin]/lib/loader.js!./src/pug/pages/index.pug:647:17

  - index.pug:665 eval
    [.]/[html-webpack-plugin]/lib/loader.js!./src/pug/pages/index.pug:665:21

  - index.pug:668 template
    [.]/[html-webpack-plugin]/lib/loader.js!./src/pug/pages/index.pug:668:72

  - index.js:284
    [public2]/[html-webpack-plugin]/index.js:284:18

This is how I connect it in the defal template
include ../bemto/bemto
include ../includes/modules/head
include ../includes/modules/header
include ../includes/modules/footer

block variables

doctype html
html(lang='en')
  +head()

  body
    +header()
    block content
    +footer()

here is the folder structure 5e124399efc3d706576705.png
tell me how to solve this problem

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Glebov, 2020-01-05
@SkiperX

here is clone function
https://github.com/kizu/bemto/blob/master/lib/help...
check that all files in bemto/lib are in place

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question