Skip to content

Module build failed: Error: the "basedir" option is required to use includes and extends with "absolute" paths #61

Closed
@jantajov

Description

@jantajov

I am trying to use pug as template lang but getting an error when including the mixins.

Error says:
Module build failed: Error: the "basedir" option is required to use includes and extends with "absolute" paths

Where am I supposed to configure the basedir option?

I have installed the pug using
npm install pug --save-dev

My Login.vue looks like this now:

<template lang="pug">
  include /pug/PrependInput.pug
  div.app.flex-row.align-items-center
    div.container
      b-row.justify-content-center
        b-col(md="5")
          b-card.p-4(no-body)
            b-card-body
              h1 Login
</template>

Works fine, when I don't use include.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions