grunt-aws icon indicating copy to clipboard operation
grunt-aws copied to clipboard

Fatal error: mime.lookup is not a function

Open bonesoul opened this issue 6 years ago • 4 comments

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?

bonesoul avatar Feb 22 '19 11:02 bonesoul

Sorry needs a PR

On Fri, 22 Feb 2019 at 10:07 pm Hüseyin Uslu [email protected] 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>
.

jpillora avatar Feb 22 '19 12:02 jpillora

Why is code for 0.7.0 not on github?

rchl avatar Feb 22 '19 15:02 rchl

Sorry, pushed

On Sat, 23 Feb 2019 at 02:01, Rafał Chłodnicki [email protected] 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 .

jpillora avatar Feb 22 '19 15:02 jpillora

from mime changelog;

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

lookup() renamed to getType()

bonesoul avatar Feb 22 '19 19:02 bonesoul