Skip to content

Error: include is not a function #4

Open
@kwhat

Description

@kwhat

The include functionality was suppose to be included with EJS 2. "Includes are inserted at runtime, so you can use variables for the path in the include call (for example <%- include(somePath) %>)" - https://github.com/mde/ejs#includes

ERROR in   TypeError: layout.html:12
      10|     </head>
      11|     <body>
   >> 12|         <%- include(htmlWebpackPlugin.options.page) %>
      13|     </body>
      14| </html>
      15|
  include is not a function

  - loader.js:37 anonymous
    [layout.html?.]/[html-webpack-plugin]/lib/loader.js:37:22

  - index.js:284 Promise.resolve.then
    [testing]/[html-webpack-plugin]/index.js:284:18

  - next_tick.js:68 process._tickCallback
    internal/process/next_tick.js:68:7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions