Open kimulaco opened 4 years ago
I have a same probrem.
This is due to this commit. https://github.com/mde/ejs/commit/12beb5ccc08ac1fc5240128f7d5dba2e82acf57f
Please remove to return deps
like my pullrequest.
(I'm sorry, my English is not good.)
Same issue here.
This issue is not resolved yet. Please take a look at it.
I have fixed it in my repository. https://github.com/bananacoffee/ejs-html-loader
Overview
ejs@3 fails to build with the error "Cannot read property 'forEach' of undefined". The repository is here.
No error occurs when using ejs@2.7.4. (The example is here)
Package Version
webpack.config.js
Error
Expected cause
Maybe the return value of the
compile
function has changed from ejs@3 anddeps
is no array.https://github.com/mcmath/ejs-html-loader/blob/master/src/render.js#L9