foundation-emails: SetProcessDpiAwareness failed: "COM error 0x80070005

npm run build or gulp --production produces this error:

[13:01:06] Starting 'sass'...
SetProcessDpiAwareness failed: "COM error 0x80070005  (Unknown error 0x0ffffffff80070005)"
[13:01:07] 'sass' errored after 1.09 s
[13:01:07] Error in plugin 'gulp-uncss'
Message:
    SetProcessDpiAwareness failed: "COM error 0x80070005  (Unknown error 0x0ffffffff80070005)"

Details:
    domainEmitter: [object Object]
    domain: [object Object]
    domainThrown: false
[13:01:07] 'build' errored after 1.81 s

Here is the inky code:


---
subject: redacted
---

<container class="header">
  <container class="body-border">
    <row>
      <columns style="width:100%;" small="12" large="12">
        <div class="hr"></div>
        <div class="hr"></div>
      </columns>
    </row>
    <row>
      <columns small="9" large="9">
        <row>
          <columns small="12" large="12">
            <h1 class="title-text main_title" style="margin-top:5px;">redacted</h1>
          </columns>
        </row>
        <row>
          <columns small="12" large="12">
            <h2 class="title-text sub_heading" style="margin-bottom:15px;">Graphic Designer</h2>
          </columns>
        </row>
      </columns>
      <columns class="logo" align="right" small="3" large="3">
        <img src="redacted" alt="" title="" width="33" height="50" border="0" style="float:right;text-align:right;max-width:100%;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;image-rendering:optimizeQuality;">
      </columns>
    </row>
    <row style="max-width:410px;margin-bottom:10px;margin-top:5px;">
      <columns small="12" large="4">
        <menu class="menu-items">
          <item class="image_item" href="tel:redacted" style="float:left!important;margin:0!important;text-align:left!important;"><img src="redacted" alt="" title="" width="14" height="14" border="0" style="max-width:100%;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;image-rendering:optimizeQuality;"></item>
          <item href="redacted" style="float:left !important;">redacted</item>
        </menu>
      </columns>
      <columns small="12" large="4">
        <menu class="menu-items">
          <item class="image_item" href="redacted" style="float:left!important;margin:0!important;text-align:left!important;"><img src="redacted" alt="" title="" width="14" height="14" border="0" style="max-width:100%;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;image-rendering:optimizeQuality;"></item>
          <item href="redacted" style="float:left!important;margin:0!important;text-align:left!important;">jredacted</item>
        </menu>
      </columns>
      <columns small="12" large="4">
        <menu class="menu-items">
          <item class="image_item" href="redacted" style="float:left!important;margin:0!important;text-align:left!important;"><img src="redacted" alt="" title="" width="14" height="14" border="0" style="max-width:100%;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;image-rendering:optimizeQuality;"></item>
          <item href="redacted" style="float:left!important;margin:0!important;text-align:left!important;">redacted</item>
        </menu>
      </columns>
    </row>
    <row>
      <columns small="12" large="12">
        <p class="small_print" style="max-width:410px">This message, including any attachments, may contain privileged and confidential information intended only for the person(s) named. Any use, distribution, copying or disclosure by any other person is strictly prohibited. I do not accept any liability or responsibility for viruses and it is the recipient's responsibility to scan any attachments.</p>
      </columns>
    </row>
  </container>
</container>

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (1 by maintainers)

Most upvoted comments

Ok another update.

in gulpfile.babel.js comment out this from the sass task:

// Compile Sass into CSS
function sass() {
  return gulp.src('src/assets/scss/app.scss')
    .pipe($.if(!PRODUCTION, $.sourcemaps.init()))
    .pipe($.sass({
      includePaths: ['node_modules/foundation-emails/scss']
    }).on('error', $.sass.logError))
    //.pipe($.if(PRODUCTION, $.uncss( ,    <--- this
    //  {
    //    html: ['dist/**/*.html']
    //  }))) <--- to this
    .pipe($.if(!PRODUCTION, $.sourcemaps.write()))
    .pipe(gulp.dest('dist/css'));
}

This will stop the un-css plugin from running, which is causing the problem.

This isn’t an issue as you can read here: https://www.npmjs.com/package/gulp-uncss , all this plugin does is remove un-used CSS, so it’s not critical.

This is a half ‘fix’