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: Filters – Pug
Hi, can you share a link to your repo so I can see how you have it setup and your build process? My immediate guess is that you aren’t bundling in or zipping all the dependencies you need (this can be done during the build).
I think this is the important message. Are you aware that our build filesystem is case sensitive? That capital P, if hardcoded in your file, is unlikely to match to the likely-all-lowercase storage that git, npm, and company all default to. But directories “/p” and “/P” are different here, during build.
I wasn’t aware of that, but that’s not the case here.
I don’t have anything coded regarding this module.
You can check more details here in my repo: GitHub - podrivo/movimentoux at admin-test
It seems that uc.micro is a dependency of markdown-it-attrs. You could try removing your package-lock.json file and running npm install again to re-create the file and hopefully update nested dependencies. Let me know if it helps.