jpillora / grunt-aws

A Grunt interface into the Amazon Node.JS SDK
171 stars 44 forks source link

Fatal error: mime.lookup is not a function #68

Open bonesoul opened 5 years ago

bonesoul commented 5 years ago

upgraded to 0.7.0 and getting this error.

my config;

s3: {
      options: {
        accessKeyId: "<%= aws.access %>",
        secretAccessKey: "<%= aws.secret %>",
        bucket: "<%= aws.bucket %>",
        cache: false
      },
      assets: {
        options: {
          headers: {
            CacheControl: 'max-age=2628000, public, must-revalidate' // cache for a month.
          }
        },
        cwd: "public/",
        src: "**",
        dest: ""
      }
    }

any ideas?

jpillora commented 5 years ago

Sorry needs a PR

On Fri, 22 Feb 2019 at 10:07 pm Hüseyin Uslu notifications@github.com wrote:

upgraded to 0.7.0 and getting this error.

my config;



s3: {
options: {
accessKeyId: "<%= aws.access %>",
secretAccessKey: "<%= aws.secret %>",
bucket: "<%= aws.bucket %>",
cache: false
},
assets: {
options: {
headers: {
CacheControl: 'max-age=2628000, public, must-revalidate' // cache for a
month.
}
},
cwd: "public/",
src: "**",
dest: ""
}
}

any ideas?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/jpillora/grunt-aws/issues/68>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAmr8zBqzg60rDl4ZjHZEf_r1dcbGrutks5vP89VgaJpZM4bJX8g>
.
rchl commented 5 years ago

Why is code for 0.7.0 not on github?

jpillora commented 5 years ago

Sorry, pushed

On Sat, 23 Feb 2019 at 02:01, Rafał Chłodnicki notifications@github.com wrote:

Why is code for 0.7.0 not on github?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jpillora/grunt-aws/issues/68#issuecomment-466426058, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmr80wvXVRuA76ziinZmrsXfJt0Onp8ks5vQAY5gaJpZM4bJX8g .

bonesoul commented 5 years ago

from mime changelog;

https://github.com/broofa/node-mime#version-2-notes

lookup() renamed to getType()