Answer the question
In order to leave comments, you need to log in
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
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()
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question