I have this project using Gulp + Pug, that I’m updating old *.pug files to *.md files, so I can work with Netlify CMS.
In Pug, you can use Filters/Plugins to include and compile other language files, using JSTransformer modules.
Here’s the example I’m working with:
In my local environment everything works as expected, but it throws an error in Netlify build.
Here’s the log:
Plumber found unhandled error: Error in plugin "gulp-pug" Message: Cannot find module 'uc.micro/categories/P/regex' Details: code: MODULE_NOT_FOUND
If I remove the Filters/Plugins from the include, Netlify doesn’t throw an error, but I don’t get the markdown compile I need.
Link to Pug documentation: https://pugjs.org/language/filters.html
What should I do to fix this error?