cr0ybot / gulp-wp

A reusable, extendable, updatable Gulp workflow for WordPress themes & plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incessant styles (correction: translate) task error notification

cr0ybot opened this issue · comments

After adding gulp-wp to a new project and running npm start, I get a notification on every compilation that there's an error in the styles task. However, everything is compiling fine.

After adding gulp-wp to a new project and running npm start, I get a notification on every compilation that there's an error in the styles task. However, everything is compiling fine.

Are they deprecation warnings? I see a lot of those with older SASS libs like Bootstrap 5.0. I was able to suppress them by adding the quietDeps option to my sass options.

quietDeps: true

@ouw-jvt Good suggestion, but that doesn't seem to fix the "error" notification.

Initially I thought this was only happening during watch, but running build also throws the "error" after the styles task—actually after the entire build task—is finished. Seems like there's a promise somewhere that's resolving after the task is complete.

Ahahaha, it wasn't the styles task at all, it was the translate task which was mistakenly labeled "styles" during error output. At least I'm looking in the correct place now.

I've sorted it out, the wp-pot package expects to be run separately for php files vs js files, but I was including all php and js files simultaneously. I'm removing the js files from the task src for the time being since it wasn't parsing them anyways, so this fix will be included in a patch release.