vite-plugin-pug icon indicating copy to clipboard operation
vite-plugin-pug copied to clipboard

TypeError: pugPlugin is not a function

Open abdurahman-harouat opened this issue 1 year ago • 2 comments

when doing yarn dev i get this error

error when starting dev server:
TypeError: pugPlugin is not a function

im using archlinux

abdurahman-harouat avatar Aug 30 '22 19:08 abdurahman-harouat

same for me! can you provide me any fixes? macOS user here...

themixhelp avatar Nov 07 '22 19:11 themixhelp

I had to import the plugin like this.

const { default: vitePug } = require('vite-plugin-pug');

Not sure if this is your problem though.

felixranesberger avatar Feb 02 '23 15:02 felixranesberger