I’m attempting to use Foundation for Emails, and I seem to be running into issues when CSS is about to be inlined.
Things seems to go okay when running ‘foundation watch’: my web browser starts up, and I can see the default pages that are provided with a new project.
However, when I try to run ‘foundation build’, the ‘sass’ step “errors” at ‘gulp-uncss’, and I have no clue how to troubleshoot this issue.
I’ve searched this forum, the GitHub issues (including closed issues), and searched StackOverflow. There seem to be similar issues, but they mostly seem to have to do with certain advanced features and/or inavertent of diacritic characters.
$ lsb_release --all --short No LSB modules are available. Debian Debian GNU/Linux 10 (buster) 10 buster $ nodejs -v v10.22.0 $ npm -v 6.14.6 $ foundation -v Foundation CLI version 2.2.6
Console output of ‘foundation build’:
$ foundation build > email@example.com build /home/user/test/test > gulp --production [16:43:26] Requiring external module babel-register [16:43:29] Using gulpfile ~/test/test/gulpfile.babel.js [16:43:29] Starting 'default'... [16:43:29] Starting 'build'... [16:43:29] Starting 'clean'... [16:43:29] Finished 'clean' after 14 ms [16:43:29] Starting 'pages'... [16:43:30] Finished 'pages' after 804 ms [16:43:30] Starting 'sass'... Auto configuration failed [16:43:31] 'sass' errored after 971 ms [16:43:31] Error in plugin 'gulp-uncss' Message: Auto configuration failed Details: domainEmitter: [object Object] domain: [object Object] domainThrown: false [16:43:31] 'build' errored after 1.79 s [16:43:31] 'default' errored after 1.8 s Error: firstname.lastname@example.org build: `gulp --production` Exit status 1 at EventEmitter.<anonymous> (/usr/lib/node_modules/foundation-cli/node_modules/npm/lib/utils/lifecycle.js:217:16) at EventEmitter.emit (events.js:198:13) at ChildProcess.<anonymous> (/usr/lib/node_modules/foundation-cli/node_modules/npm/lib/utils/spawn.js:24:14) at ChildProcess.emit (events.js:198:13) at maybeClose (internal/child_process.js:982:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
The error message of step ‘sass’, plugin ‘gulp-uncss’, says:
Auto configuration failed
…and that’s basically where I’m stuck
Does anyone know how I could proceed troubleshooting? Thanks!